Hard limit values are negative.
This commit is contained in:
parent
30cdfe2bea
commit
5aa7202a78
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue