Minor fix

This commit is contained in:
Miroslav Stampar 2014-08-11 12:46:37 +02:00
parent f110bfe28a
commit 658110e644

View File

@ -824,6 +824,9 @@ class Agent(object):
@rtype: C{str} @rtype: C{str}
""" """
if " FROM " not in query:
return query
limitedQuery = query limitedQuery = query
limitStr = queries[Backend.getIdentifiedDbms()].limit.query limitStr = queries[Backend.getIdentifiedDbms()].limit.query
fromIndex = limitedQuery.index(" FROM ") fromIndex = limitedQuery.index(" FROM ")