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

Skip to content

Commit b54ae10

Browse files
committed
major bug fix in --search with multiple -C provided
1 parent 45177cf commit b54ae10

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

plugins/generic/search.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,13 +326,17 @@ def searchColumn(self):
326326
infoMsgTbl = ""
327327
infoMsgDb = ""
328328
colList = conf.col.split(",")
329+
origTbl = conf.tbl
330+
origDb = conf.db
329331
colCond = rootQuery.inband.condition
330332
dbCond = rootQuery.inband.condition2
331333
tblCond = rootQuery.inband.condition3
332334
colConsider, colCondParam = self.likeOrExact("column")
333335

334336
for column in colList:
335337
column = safeSQLIdentificatorNaming(column)
338+
conf.db = origDb
339+
conf.tbl = origTbl
336340

337341
if Backend.getIdentifiedDbms() in (DBMS.ORACLE, DBMS.DB2):
338342
column = column.upper()

0 commit comments

Comments
 (0)