Hard limit values are negative.

This commit is contained in:
Jim Menard 2009-02-10 13:04:19 -05:00
parent 30cdfe2bea
commit 5aa7202a78
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ module XGen
write_int(0)
write_string("#{db_name}.#{collection_name}")
write_int(query.number_to_skip)
write_int(query.number_to_return)
write_int(-query.number_to_return) # Negative means hard limit
sel = query.selector
if query.contains_special_fields
sel = OrderedHash.new