expandAsteriskForColumns changes value of conf.db and conf.tbl potentially causing problems in further work

This commit is contained in:
Miroslav Stampar 2014-08-26 22:57:08 +02:00
parent decd092b2a
commit e68326c0fe

View File

@ -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: