From e68326c0fef78b7c834f35d5ad7c172e99a7b870 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Tue, 26 Aug 2014 22:57:08 +0200 Subject: [PATCH] expandAsteriskForColumns changes value of conf.db and conf.tbl potentially causing problems in further work --- lib/request/inject.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/request/inject.py b/lib/request/inject.py index 0904ae515..847c1b41b 100644 --- a/lib/request/inject.py +++ b/lib/request/inject.py @@ -343,6 +343,9 @@ def getValue(expression, blind=True, union=True, error=True, time=True, fromUser getCurrentThreadData().disableStdOut = suppressOutput try: + pushValue(conf.db) + pushValue(conf.tbl) + if expected == EXPECTED.BOOL: forgeCaseExpression = booleanExpression = expression @@ -434,6 +437,9 @@ def getValue(expression, blind=True, union=True, error=True, time=True, fromUser if suppressOutput is not None: getCurrentThreadData().disableStdOut = popValue() + conf.tbl = popValue() + conf.db = popValue() + kb.safeCharEncode = False if not kb.testMode and value is None and Backend.getDbms() and conf.dbmsHandler and not conf.noCast and not conf.hexConvert: