diff --git a/lib/core/agent.py b/lib/core/agent.py index e0626681a..c97401f62 100644 --- a/lib/core/agent.py +++ b/lib/core/agent.py @@ -606,7 +606,7 @@ class Agent(object): if where == PAYLOAD.WHERE.ORIGINAL: if Backend.getIdentifiedDbms() in (DBMS.MYSQL, ): - limitOriginal = "%s " % (queries[Backend.getIdentifiedDbms()].limit.query % (0, 0)) + limitOriginal = "%s " % (queries[Backend.getIdentifiedDbms()].limit.query % (0, kb.testMode)) unionQuery = self.prefixQuery("%sUNION ALL SELECT " % limitOriginal, prefix=prefix)