From 58656bbeb58d77e59e5978a4e9cb436a2d42ce09 Mon Sep 17 00:00:00 2001 From: Bernardo Damele Date: Tue, 18 Dec 2012 16:36:30 +0000 Subject: [PATCH] minor bug fix, union query has to be limited 0, 0 --- lib/core/agent.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/core/agent.py b/lib/core/agent.py index fd5957b18..e0626681a 100644 --- a/lib/core/agent.py +++ b/lib/core/agent.py @@ -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)