reverting back to UNION ALL scheme (UNION is doing another DISTINCT on data causing problems on some column types)

This commit is contained in:
Miroslav Stampar 2012-04-15 16:59:03 +00:00
parent 71b0acc16f
commit 601d118c68

View File

@ -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))