This commit is contained in:
Miroslav Stampar
2020-12-17 13:34:23 +01:00
parent d9e6e678e8
commit 85c6d0d5c1
3 changed files with 15 additions and 1 deletions

View File

@@ -194,6 +194,9 @@ class Search(object):
else:
whereDbsQuery = ""
if dbCond and conf.exclude:
whereDbsQuery += " AND %s NOT LIKE '%s'" % (dbCond, re.sub(r"\.[*+]", '%', conf.exclude._original))
logger.info(infoMsg)
tblQuery = "%s%s" % (tblCond, tblCondParam)
@@ -431,6 +434,9 @@ class Search(object):
else:
infoMsgDb = " across all databases"
if conf.exclude:
whereDbsQuery += " AND %s NOT LIKE '%s'" % (dbCond, re.sub(r"\.[*+]", '%', conf.exclude._original))
logger.info("%s%s%s" % (infoMsg, infoMsgTbl, infoMsgDb))
colQuery = "%s%s" % (colCond, colCondParam)