[SERVER-11775] $all with null handled differently in 2.4 and 2.5 Created: 19/Nov/13  Updated: 11/Jul/16  Resolved: 20/Nov/13

Status: Closed
Project: Core Server
Component/s: Querying
Affects Version/s: None
Fix Version/s: 2.5.3

Type: Bug Priority: Minor - P4
Reporter: Andrew Emil (Inactive) Assignee: Benety Goh
Resolution: Done Votes: 0
Labels: 26qa, nqf, query_triage
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: File server11775.js    
Issue Links:
Related
Operating System: ALL
Participants:

 Description   

2.4 and 2.5 handle $all with a null differently

Basic reproduction:

>db.test.drop()
>db.test.insert(

{a:1}

)
>db.test.find({a: {$all: [null]}})

2.4 will return the document, 2.5 will not.

Tested on 2.4.8 and build from trunk on 11/18



 Comments   
Comment by Githook User [ 20/Nov/13 ]

Author:

{u'username': u'benety', u'name': u'Benety Goh', u'email': u'benety@mongodb.com'}

Message: SERVER-11775 added test case for {$all: [null]}
Branch: master
https://github.com/mongodb/mongo/commit/696c4e260c5c731201fbd993eaf4c785cc6aeca1

Comment by Daniel Pasette (Inactive) [ 19/Nov/13 ]

This looks like a bug fix. benety.goh, close with a test?

Generated at Thu Feb 08 03:26:44 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.