From b7429dc6bbd3164181870d5f40adfd29f079d0db Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Thu, 25 Oct 2012 00:15:59 +0200 Subject: [PATCH] Minor fix for an Issue #219 --- plugins/generic/databases.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/generic/databases.py b/plugins/generic/databases.py index f874f2f51..890c19cb6 100644 --- a/plugins/generic/databases.py +++ b/plugins/generic/databases.py @@ -256,7 +256,7 @@ class Databases: if condition: if conf.excludeSysDbs: query += " WHERE " - query += " AND ".join("%s != '%s'" % (condition, unsafeSQLIdentificatorNaming(db)) for db in self.excludeDbsList) + query += " AND ".join("%s != ('%s')" % (condition, unsafeSQLIdentificatorNaming(db)) for db in self.excludeDbsList) infoMsg = "skipping system database%s '%s'" % ("s" if len(self.excludeDbsList) > 1 else "", ", ".join(db for db in self.excludeDbsList)) logger.info(infoMsg) elif not Backend.isDbms(DBMS.SQLITE):