Minor bug fix to properly cast to string also the COUNT() query in error-based technique (as it's concatenated to random strings for identification in page response) and int-string concatenation is not supported in all DBMS (like Oracle)

This commit is contained in:
Bernardo Damele 2011-01-20 22:01:21 +00:00
parent bd2e036412
commit 0f2634c4b0

View File

@ -219,7 +219,8 @@ def errorUse(expression, expected=None, resumeValue=True, dump=False):
if not stopLimit:
if not count or not count.isdigit():
count = __oneShotErrorUse(countedExpression, expressionFields)
_, _, _, _, _, _, countedExpressionFields, _ = agent.getFields(countedExpression)
count = __oneShotErrorUse(countedExpression, countedExpressionFields)
if isNumPosStrValue(count):
stopLimit = int(count)