File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -254,14 +254,15 @@ def getTables(self, bruteForce=None):
254254 condition = rootQuery .inband .condition if 'condition' in rootQuery .inband else None
255255
256256 if condition :
257+ if not Backend .isDbms (DBMS .SQLITE ):
258+ query += " WHERE %s" % condition
259+ query += " IN (%s)" % "," .join ("'%s'" % unsafeSQLIdentificatorNaming (db ) for db in sorted (dbs ))
257260 if conf .excludeSysDbs :
258- query += " WHERE "
261+ if Backend .isDbms (DBMS .SQLITE ):
262+ query += " WHERE "
259263 query += " AND " .join ("%s != '%s'" % (condition , unsafeSQLIdentificatorNaming (db )) for db in self .excludeDbsList )
260264 infoMsg = "skipping system database%s '%s'" % ("s" if len (self .excludeDbsList ) > 1 else "" , ", " .join (db for db in self .excludeDbsList ))
261265 logger .info (infoMsg )
262- elif not Backend .isDbms (DBMS .SQLITE ):
263- query += " WHERE %s" % condition
264- query += " IN (%s)" % "," .join ("'%s'" % unsafeSQLIdentificatorNaming (db ) for db in sorted (dbs ))
265266
266267 if len (dbs ) < 2 and ("%s," % condition ) in query :
267268 query = query .replace ("%s," % condition , "" , 1 )
You can’t perform that action at this time.
0 commit comments