File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -257,12 +257,11 @@ def getTables(self, bruteForce=None):
257257 if not Backend .isDbms (DBMS .SQLITE ):
258258 query += " WHERE %s" % condition
259259 query += " IN (%s)" % "," .join ("'%s'" % unsafeSQLIdentificatorNaming (db ) for db in sorted (dbs ))
260- if conf .excludeSysDbs :
261- if Backend .isDbms (DBMS .SQLITE ):
262- query += " WHERE "
263- query += " AND " .join ("%s != '%s'" % (condition , unsafeSQLIdentificatorNaming (db )) for db in self .excludeDbsList )
264- infoMsg = "skipping system database%s '%s'" % ("s" if len (self .excludeDbsList ) > 1 else "" , ", " .join (db for db in self .excludeDbsList ))
265- logger .info (infoMsg )
260+
261+ if conf .excludeSysDbs :
262+ query += " AND " .join ("%s != '%s'" % (condition , unsafeSQLIdentificatorNaming (db )) for db in self .excludeDbsList )
263+ infoMsg = "skipping system database%s '%s'" % ("s" if len (self .excludeDbsList ) > 1 else "" , ", " .join (db for db in self .excludeDbsList ))
264+ logger .info (infoMsg )
266265
267266 if len (dbs ) < 2 and ("%s," % condition ) in query :
268267 query = query .replace ("%s," % condition , "" , 1 )
You can’t perform that action at this time.
0 commit comments