From 4ca81dd3450ae1fd9c2518406081315b7932e78f Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Mon, 1 Aug 2011 23:25:58 +0000 Subject: [PATCH] quick fix --- plugins/generic/enumeration.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/plugins/generic/enumeration.py b/plugins/generic/enumeration.py index 6a8c0b2d1..fe7088457 100644 --- a/plugins/generic/enumeration.py +++ b/plugins/generic/enumeration.py @@ -1442,11 +1442,13 @@ class Enumeration: break for column in colList: - if column == colList[0]: - # Correction for pivotValues with unrecognized chars - if pivotValue and '?' in pivotValue and pivotValue[0] != '?': - pivotValue = pivotValue.split('?')[0] + # Correction for pivotValues with unrecognized/problematic chars + for char in ('\'', '?'): + if pivotValue and char in pivotValue and pivotValue[0] != char: + pivotValue = pivotValue.split(char)[0] pivotValue = pivotValue[:-1] + chr(ord(pivotValue[-1]) + 1) + break + if column == colList[0]: query = dumpNode.query % (column, table, column, pivotValue) else: query = dumpNode.query2 % (column, table, colList[0], pivotValue)