From 2c66ca39f16926cb9f82ccff94e4c2930801428a Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Wed, 22 Aug 2012 09:53:53 +0200 Subject: [PATCH] Wrong limit number has been used (MySQL LIMIT/OFFSET starts with 0) --- 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 6b7ad667a..01907cd8f 100644 --- a/lib/core/agent.py +++ b/lib/core/agent.py @@ -592,7 +592,7 @@ class Agent: limitOriginal = "" if where == PAYLOAD.WHERE.ORIGINAL: if Backend.getIdentifiedDbms() in (DBMS.MYSQL, ): - limitOriginal = "%s " % (queries[Backend.getIdentifiedDbms()].limit.query % (1, 1)) + limitOriginal = "%s " % (queries[Backend.getIdentifiedDbms()].limit.query % (0, 1)) inbandQuery = self.prefixQuery("%sUNION ALL SELECT " % limitOriginal, prefix=prefix)