Probable fix for --technique=Q --dbms=Firebird (but also other potential issues with splitting of fields in expressions)

This commit is contained in:
Miroslav Stampar
2013-01-22 15:51:06 +01:00
parent 2ec828f1cb
commit 719c7f622b
2 changed files with 15 additions and 7 deletions

View File

@@ -3310,6 +3310,18 @@ def zeroDepthSearch(expression, value):
return retVal
def splitFields(fields, delimiter=','):
"""
Returns list of fields splitted by delimiter
"""
fields = fields.replace("%s " % delimiter, delimiter)
commas = [-1, len(fields)]
commas.extend(zeroDepthSearch(fields, ','))
commas = sorted(commas)
return [fields[x + 1:y] for (x, y) in zip(commas, commas[1:])]
def pollProcess(process, suppress_errors=False):
while True:
dataToStdout(".")