minor patch

This commit is contained in:
Miroslav Stampar 2011-10-24 09:43:59 +00:00
parent 6d64f87190
commit cd00c0d084

View File

@ -94,7 +94,9 @@ class Agent:
else:
value = "-%s" % randomInt()
else:
value = "%s AND %s=%s" % (origValue, randomInt(2), randomInt(2))
match = re.search(r'\A[^ ]+', newValue)
newValue = newValue[len(match.group() if match else ""):]
value = "%s%s AND %s=%s" % (origValue, match.group() if match else "", randomInt(2), randomInt(2))
elif where == PAYLOAD.WHERE.REPLACE:
value = ""
else: