From b35a0810efdfddb5902f0de5fadae8c17419b034 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Mon, 21 Jan 2013 17:01:52 +0100 Subject: [PATCH] Fix for an Issue #364 --- lib/core/agent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/core/agent.py b/lib/core/agent.py index a6d07da8c..319938c3d 100644 --- a/lib/core/agent.py +++ b/lib/core/agent.py @@ -443,7 +443,7 @@ class Agent(object): elif fieldsSelectFrom: _ = zeroDepthSearch(query, " FROM ") fieldsToCastStr = query[:unArrayizeValue(_)] if _ else query - fieldsToCastStr = re.sub(r"\ASELECT\s+", "", fieldsToCastStr) + fieldsToCastStr = re.sub(r"\ASELECT%s\s+" % prefixRegex, "", fieldsToCastStr) elif fieldsSelect: fieldsToCastStr = fieldsSelect.groups()[0] else: