Minor fixes

This commit is contained in:
Miroslav Stampar 2013-02-15 14:21:51 +01:00
parent 345d10a9e0
commit b1c0cabde5

View File

@ -263,7 +263,7 @@ class Search:
else: else:
for db in conf.db.split(","): for db in conf.db.split(","):
if db not in foundTbls: if db not in foundTbls:
foundTbls[db] = [] foundTbls[safeSQLIdentificatorNaming(db)] = []
else: else:
dbName = "SQLite" if Backend.isDbms(DBMS.SQLITE) else "Firebird" dbName = "SQLite" if Backend.isDbms(DBMS.SQLITE) else "Firebird"
foundTbls["%s%s" % (dbName, METADB_SUFFIX)] = [] foundTbls["%s%s" % (dbName, METADB_SUFFIX)] = []
@ -289,7 +289,7 @@ class Search:
if tblConsider == "1": if tblConsider == "1":
warnMsg += "s like" warnMsg += "s like"
warnMsg += " '%s' " % unsafeSQLIdentificatorNaming(tbl) warnMsg += " '%s' " % unsafeSQLIdentificatorNaming(tbl)
warnMsg += "in database '%s'" % db warnMsg += "in database '%s'" % unsafeSQLIdentificatorNaming(db)
logger.warn(warnMsg) logger.warn(warnMsg)
continue continue