one more related commit

This commit is contained in:
Miroslav Stampar 2011-02-07 16:32:08 +00:00
parent 265e7ca272
commit 771020abd6

View File

@ -677,7 +677,8 @@ class Agent:
limitedQuery = "%s WHERE %s " % (limitedQuery, field if not uniqueField else uniqueField) limitedQuery = "%s WHERE %s " % (limitedQuery, field if not uniqueField else uniqueField)
limitedQuery += "NOT IN (%s" % (limitStr % num) limitedQuery += "NOT IN (%s" % (limitStr % num)
limitedQuery += "%s %s)" % (field if not uniqueField else uniqueField, fromFrom) limitedQuery += "%s %s%s)" % (field if not uniqueField else uniqueField, fromFrom, (" ORDER BY %s" % uniqueField) if uniqueField else "")
if orderBy: if orderBy:
limitedQuery += orderBy limitedQuery += orderBy