From b54ae107cc45cf9534ad00d0cafd2f4413a8ce8f Mon Sep 17 00:00:00 2001 From: Bernardo Damele Date: Fri, 20 Jul 2012 22:29:48 +0100 Subject: [PATCH] major bug fix in --search with multiple -C provided --- plugins/generic/search.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/generic/search.py b/plugins/generic/search.py index 2aaa9f0c3..3e60e2101 100644 --- a/plugins/generic/search.py +++ b/plugins/generic/search.py @@ -326,6 +326,8 @@ class Search: infoMsgTbl = "" infoMsgDb = "" colList = conf.col.split(",") + origTbl = conf.tbl + origDb = conf.db colCond = rootQuery.inband.condition dbCond = rootQuery.inband.condition2 tblCond = rootQuery.inband.condition3 @@ -333,6 +335,8 @@ class Search: for column in colList: column = safeSQLIdentificatorNaming(column) + conf.db = origDb + conf.tbl = origTbl if Backend.getIdentifiedDbms() in (DBMS.ORACLE, DBMS.DB2): column = column.upper()