minor update

This commit is contained in:
Miroslav Stampar 2012-03-08 15:43:22 +00:00
parent 4bc6f3f6c9
commit 5a83f1c5f7
2 changed files with 7 additions and 5 deletions

View File

@ -29,6 +29,7 @@ from lib.core.common import pushValue
from lib.core.common import randomInt from lib.core.common import randomInt
from lib.core.common import readInput from lib.core.common import readInput
from lib.core.common import safeStringFormat from lib.core.common import safeStringFormat
from lib.core.common import singleTimeWarnMessage
from lib.core.data import conf from lib.core.data import conf
from lib.core.data import kb from lib.core.data import kb
from lib.core.data import logger from lib.core.data import logger
@ -446,6 +447,12 @@ def getValue(expression, blind=True, inband=True, error=True, time=True, fromUse
kb.safeCharEncode = False kb.safeCharEncode = False
if not kb.testMode and value is None:
warnMsg = "in case of continuous data retrieval problems you are advised to try "
warnMsg += "a hidden switch '--no-cast' (fixing problems with some collation "
warnMsg += "issues) and/or switch '--hex'"
singleTimeWarnMessage(warnMsg)
return extractExpectedValue(value, expected) return extractExpectedValue(value, expected)
def goStacked(expression, silent=False): def goStacked(expression, silent=False):

View File

@ -94,11 +94,6 @@ def __oneShotUnionUse(expression, unpack=True, limited=False):
warnMsg = "possible server trimmed output detected (due to its length): " warnMsg = "possible server trimmed output detected (due to its length): "
warnMsg += trimmed warnMsg += trimmed
logger.warn(warnMsg) logger.warn(warnMsg)
elif Backend.isDbms(DBMS.MYSQL) and not kb.multiThreadMode:
warnMsg = "if the problem persists with 'None' values please try to use "
warnMsg += "hidden switch '--no-cast' (fixing problems with some collation "
warnMsg += "issues) or switch '--hex'"
singleTimeWarnMessage(warnMsg)
hashDBWrite("%s%s" % (conf.hexConvert, expression), retVal) hashDBWrite("%s%s" % (conf.hexConvert, expression), retVal)