From 658110e644871f5c7f8f7ec4cfaf2bac08bc973e Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Mon, 11 Aug 2014 12:46:37 +0200 Subject: [PATCH] Minor fix --- lib/core/agent.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/core/agent.py b/lib/core/agent.py index 670420a6a..ce78736ee 100644 --- a/lib/core/agent.py +++ b/lib/core/agent.py @@ -824,6 +824,9 @@ class Agent(object): @rtype: C{str} """ + if " FROM " not in query: + return query + limitedQuery = query limitStr = queries[Backend.getIdentifiedDbms()].limit.query fromIndex = limitedQuery.index(" FROM ")