File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -259,12 +259,13 @@ def getTables(self, bruteForce=None):
259259 if condition :
260260 if not Backend .isDbms (DBMS .SQLITE ):
261261 query += " WHERE %s" % condition
262- query += " IN (%s)" % "," .join ("'%s'" % unsafeSQLIdentificatorNaming (db ) for db in sorted (dbs ))
263262
264263 if conf .excludeSysDbs :
265- query += "" .join (" AND %s != '%s'" % (condition , unsafeSQLIdentificatorNaming (db )) for db in self .excludeDbsList )
266264 infoMsg = "skipping system database%s '%s'" % ("s" if len (self .excludeDbsList ) > 1 else "" , ", " .join (db for db in self .excludeDbsList ))
267265 logger .info (infoMsg )
266+ query += " IN (%s)" % "," .join ("'%s'" % unsafeSQLIdentificatorNaming (db ) for db in sorted (dbs ) if db not in self .excludeDbsList )
267+ else :
268+ query += " IN (%s)" % "," .join ("'%s'" % unsafeSQLIdentificatorNaming (db ) for db in sorted (dbs ))
268269
269270 if len (dbs ) < 2 and ("%s," % condition ) in query :
270271 query = query .replace ("%s," % condition , "" , 1 )
You can’t perform that action at this time.
0 commit comments