-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
ALL
-
Changing the order of the clauses in a query object can change the result returned.
In the sample below, I reversed the order of the two $or clauses.
It looks like this is in 2.4.6 through 2.4.9, I haven't tested other server versions yet.
http://docs.mongodb.org/master/reference/operator/query/and/#op._S_and documents an implicit AND. The behaviour should probably be changed to match the documentation.