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

Skip to content

Commit be213bc

Browse files
committed
Bug fix for crashes caused by '--search --exclude-sysdbs --current-db'
1 parent 4e3a4eb commit be213bc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

plugins/generic/search.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ def searchTable(self):
261261
if tblConsider == "2":
262262
continue
263263
else:
264-
for db in conf.db.split(","):
264+
for db in conf.db.split(",") if conf.db else (self.getCurrentDb(),):
265265
db = safeSQLIdentificatorNaming(db)
266266
if db not in foundTbls:
267267
foundTbls[db] = []
@@ -501,7 +501,7 @@ def searchColumn(self):
501501
if db not in foundCols[column]:
502502
foundCols[column][db] = []
503503
else:
504-
for db in conf.db.split(","):
504+
for db in conf.db.split(",") if conf.db else (self.getCurrentDb(),):
505505
db = safeSQLIdentificatorNaming(db)
506506
if db not in foundCols[column]:
507507
foundCols[column][db] = []

0 commit comments

Comments
 (0)