We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5fc1e8b commit b78163fCopy full SHA for b78163f
1 file changed
plugins/generic/databases.py
@@ -260,8 +260,8 @@ def getTables(self, bruteForce=None):
260
infoMsg = "skipping system database%s '%s'" % ("s" if len(self.excludeDbsList) > 1 else "", ", ".join(db for db in self.excludeDbsList))
261
logger.info(infoMsg)
262
elif not Backend.isDbms(DBMS.SQLITE):
263
- query += " WHERE "
264
- query += " OR ".join("%s = '%s'" % (condition, unsafeSQLIdentificatorNaming(db)) for db in sorted(dbs))
+ query += " WHERE %s" % condition
+ query += " IN (%s)" % ",".join("'%s'" % unsafeSQLIdentificatorNaming(db) for db in sorted(dbs))
265
266
if len(dbs) < 2 and ("%s," % condition) in query:
267
query = query.replace("%s," % condition, "", 1)
0 commit comments