reverting back to NVARCHAR because of error technique

This commit is contained in:
Miroslav Stampar 2011-04-20 12:59:23 +00:00
parent 3607f03a9e
commit e4d3190f41
3 changed files with 5 additions and 3 deletions

View File

@ -181,4 +181,6 @@ class xp_cmdshell:
debugMsg += "output to"
logger.debug(debugMsg)
self.createSupportTbl(self.cmdTblName, self.tblField, "TEXT")
# TEXT can't be used here because in error technique you get:
# "The text, ntext, and image data types cannot be compared or sorted"
self.createSupportTbl(self.cmdTblName, self.tblField, "NVARCHAR(4000)")

View File

@ -93,7 +93,7 @@ def __oneShotErrorUse(expression, field):
threadData.lastRequestUID else None, re.DOTALL | re.IGNORECASE)
if trimmed:
warnMsg = "trimmed output detected: "
warnMsg = "possible server trimmed output detected (due to it's length): "
warnMsg += trimmed
logger.warn(warnMsg)

View File

@ -79,7 +79,7 @@ def __oneShotUnionUse(expression, unpack=True):
if headers else None), payload, True), re.DOTALL | re.IGNORECASE)
if trimmed:
warnMsg = "trimmed output detected: "
warnMsg = "possible server trimmed output detected (due to it's length): "
warnMsg += trimmed
logger.warn(warnMsg)