quick fix

This commit is contained in:
Miroslav Stampar 2011-08-01 23:25:58 +00:00
parent cbd0ea0866
commit 4ca81dd345

View File

@ -1442,11 +1442,13 @@ class Enumeration:
break break
for column in colList: for column in colList:
if column == colList[0]: # Correction for pivotValues with unrecognized/problematic chars
# Correction for pivotValues with unrecognized chars for char in ('\'', '?'):
if pivotValue and '?' in pivotValue and pivotValue[0] != '?': if pivotValue and char in pivotValue and pivotValue[0] != char:
pivotValue = pivotValue.split('?')[0] pivotValue = pivotValue.split(char)[0]
pivotValue = pivotValue[:-1] + chr(ord(pivotValue[-1]) + 1) pivotValue = pivotValue[:-1] + chr(ord(pivotValue[-1]) + 1)
break
if column == colList[0]:
query = dumpNode.query % (column, table, column, pivotValue) query = dumpNode.query % (column, table, column, pivotValue)
else: else:
query = dumpNode.query2 % (column, table, colList[0], pivotValue) query = dumpNode.query2 % (column, table, colList[0], pivotValue)