From 8212b7b7459a4a21ad50ee21888d15b1dc0efef2 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Wed, 22 Dec 2010 12:16:04 +0000 Subject: [PATCH] bug fix --- lib/core/agent.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/core/agent.py b/lib/core/agent.py index 6e4e391d9..04e8f5e31 100644 --- a/lib/core/agent.py +++ b/lib/core/agent.py @@ -523,6 +523,9 @@ class Agent: if comment is None: comment = kb.unionComment + if query.startswith("SELECT "): + query = query[len("SELECT "):] + inbandQuery = self.prefixQuery("UNION ALL SELECT ") if query.startswith("TOP"):