Details
-
Bug
-
Resolution: Done
-
Major - P3
-
None
-
2.0
-
None
-
None
Description
If you set a negative limit and the number returned is less than requested an exception should be thrown.
if (coll.find().limit(-100).getSizes()[0] != 100) //fail
This should be an error since it is misleading and could break code that thinks it will get back that number; instead it will seem like there are less result than there actually are.