Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 658110e

Browse files
committed
Minor fix
1 parent f110bfe commit 658110e

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

lib/core/agent.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -824,6 +824,9 @@ def limitQuery(self, num, query, field=None, uniqueField=None):
824824
@rtype: C{str}
825825
"""
826826

827+
if " FROM " not in query:
828+
return query
829+
827830
limitedQuery = query
828831
limitStr = queries[Backend.getIdentifiedDbms()].limit.query
829832
fromIndex = limitedQuery.index(" FROM ")

0 commit comments

Comments
 (0)