diff --git a/lib/core/agent.py b/lib/core/agent.py index 4ad9daac1..05cf1f343 100644 --- a/lib/core/agent.py +++ b/lib/core/agent.py @@ -637,7 +637,8 @@ class Agent: limitedQuery = limitedQuery[:limitedQuery.index(" ORDER BY ")] if query.startswith("SELECT "): - limitedQuery = "%s FROM (%s, %s" % (untilFrom, untilFrom, limitStr) + delimiter = queries[Backend.getIdentifiedDbms()].delimiter.query + limitedQuery = "%s FROM (%s, %s" % (untilFrom, untilFrom.replace(delimiter, ','), limitStr) else: limitedQuery = "%s FROM (SELECT %s, %s" % (untilFrom, ", ".join(f for f in field), limitStr) limitedQuery = limitedQuery % fromFrom