added one comment

This commit is contained in:
Miroslav Stampar 2011-02-09 14:34:18 +00:00
parent bafc8a1b0f
commit 7d9be18789

View File

@ -672,6 +672,7 @@ class Agent:
limitedQuery = limitedQuery.replace("SELECT ", (limitStr % 1), 1)
if uniqueField and " ORDER BY " not in fromFrom:
# Reference: http://vorg.ca/626-the-MS-SQL-equivalent-to-MySQLs-limit-command
if " WHERE " in limitedQuery:
limitedQuery = "%s AND %s " % (limitedQuery, uniqueField)
else: