Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 601d118

Browse files
committed
reverting back to UNION ALL scheme (UNION is doing another DISTINCT on data causing problems on some column types)
1 parent 71b0acc commit 601d118

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/core/agent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,7 @@ def forgeInbandQuery(self, query, position, count, comment, prefix, suffix, char
579579
if query.startswith("SELECT "):
580580
query = query[len("SELECT "):]
581581

582-
inbandQuery = self.prefixQuery("UNION ALL SELECT " if not (where == PAYLOAD.WHERE.NEGATIVE or multipleUnions) else "UNION SELECT ", prefix=prefix)
582+
inbandQuery = self.prefixQuery("UNION ALL SELECT ", prefix=prefix)
583583

584584
if limited:
585585
inbandQuery += ",".join(char if _ != position else '(SELECT %s)' % query for _ in xrange(0, count))

0 commit comments

Comments
 (0)