Fix for an Issue #364

This commit is contained in:
Miroslav Stampar 2013-01-21 17:01:52 +01:00
parent 457217f2d3
commit b35a0810ef

View File

@ -443,7 +443,7 @@ class Agent(object):
elif fieldsSelectFrom: elif fieldsSelectFrom:
_ = zeroDepthSearch(query, " FROM ") _ = zeroDepthSearch(query, " FROM ")
fieldsToCastStr = query[:unArrayizeValue(_)] if _ else query fieldsToCastStr = query[:unArrayizeValue(_)] if _ else query
fieldsToCastStr = re.sub(r"\ASELECT\s+", "", fieldsToCastStr) fieldsToCastStr = re.sub(r"\ASELECT%s\s+" % prefixRegex, "", fieldsToCastStr)
elif fieldsSelect: elif fieldsSelect:
fieldsToCastStr = fieldsSelect.groups()[0] fieldsToCastStr = fieldsSelect.groups()[0]
else: else: