refactoring "echo 1" quick test for xp_cmdshell console output

This commit is contained in:
Miroslav Stampar
2012-03-13 10:36:49 +00:00
parent e827f41cdb
commit 34b0935cb3
3 changed files with 23 additions and 19 deletions

View File

@@ -447,7 +447,7 @@ def getValue(expression, blind=True, inband=True, error=True, time=True, fromUse
kb.safeCharEncode = False
if not kb.testMode and value is None:
if not kb.testMode and value is None and Backend.getDbms():
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'"