minor bug fix, union query has to be limited 0, 0

This commit is contained in:
Bernardo Damele 2012-12-18 16:36:30 +00:00
parent 2c86022aab
commit 58656bbeb5

View File

@ -603,9 +603,10 @@ class Agent(object):
query = query[len("SELECT "):]
limitOriginal = ""
if where == PAYLOAD.WHERE.ORIGINAL:
if Backend.getIdentifiedDbms() in (DBMS.MYSQL, ):
limitOriginal = "%s " % (queries[Backend.getIdentifiedDbms()].limit.query % (0, 1))
limitOriginal = "%s " % (queries[Backend.getIdentifiedDbms()].limit.query % (0, 0))
unionQuery = self.prefixQuery("%sUNION ALL SELECT " % limitOriginal, prefix=prefix)