Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f817105

Browse files
author
Miroslav Stampar
committed
Minor bug fix
1 parent 75a9404 commit f817105

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

plugins/generic/search.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,8 +262,9 @@ def searchTable(self):
262262
continue
263263
else:
264264
for db in conf.db.split(","):
265+
db = safeSQLIdentificatorNaming(db)
265266
if db not in foundTbls:
266-
foundTbls[safeSQLIdentificatorNaming(db)] = []
267+
foundTbls[db] = []
267268
else:
268269
dbName = "SQLite" if Backend.isDbms(DBMS.SQLITE) else "Firebird"
269270
foundTbls["%s%s" % (dbName, METADB_SUFFIX)] = []
@@ -425,7 +426,7 @@ def searchColumn(self):
425426

426427
for db in conf.db.split(","):
427428
for tbl in conf.tbl.split(","):
428-
values.append([db, tbl])
429+
values.append([safeSQLIdentificatorNaming(db), safeSQLIdentificatorNaming(tbl, True)])
429430

430431
for db, tbl in filterPairValues(values):
431432
db = safeSQLIdentificatorNaming(db)
@@ -497,6 +498,7 @@ def searchColumn(self):
497498
foundCols[column][db] = []
498499
else:
499500
for db in conf.db.split(","):
501+
db = safeSQLIdentificatorNaming(db)
500502
if db not in foundCols[column]:
501503
foundCols[column][db] = []
502504

0 commit comments

Comments
 (0)