From 601d118c68e2b3231271246b345327aa3109d31b Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Sun, 15 Apr 2012 16:59:03 +0000 Subject: [PATCH] reverting back to UNION ALL scheme (UNION is doing another DISTINCT on data causing problems on some column types) --- 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 650755ef9..0ac48fd7b 100644 --- a/lib/core/agent.py +++ b/lib/core/agent.py @@ -579,7 +579,7 @@ class Agent: if query.startswith("SELECT "): query = query[len("SELECT "):] - inbandQuery = self.prefixQuery("UNION ALL SELECT " if not (where == PAYLOAD.WHERE.NEGATIVE or multipleUnions) else "UNION SELECT ", prefix=prefix) + inbandQuery = self.prefixQuery("UNION ALL SELECT ", prefix=prefix) if limited: inbandQuery += ",".join(char if _ != position else '(SELECT %s)' % query for _ in xrange(0, count))