[SERVER-1159] {a: {$in: [null]}} broken Created: 26/May/10  Updated: 12/Jul/16  Resolved: 08/Jul/10

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

Type: Bug Priority: Major - P3
Reporter: Mathias Stearn Assignee: Aaron Staple
Resolution: Done Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:

 Description   

> db.foo.insert({})
> db.foo.find(

{a:null}

)

{ "_id" : ObjectId("4bfd5078deec96b27dbb35d7") }

> db.foo.find({a:{$in:[null]}})
>

> db.foo.ensureIndex(

{a:1}

)
> db.foo.find(

{a:null}

)

{ "_id" : ObjectId("4bfd5078deec96b27dbb35d7") }

> db.foo.find({a:{$in:[null]}})

{ "_id" : ObjectId("4bfd5078deec96b27dbb35d7") }

 Comments   
Comment by auto [ 08/Jul/10 ]

Author:

{'login': 'astaple', 'name': 'Aaron', 'email': 'aaron@10gen.com'}

Message: SERVER-1159 forgot test
http://github.com/mongodb/mongo/commit/c6a3e6caf2c3a086e282c8b94c330dd8d42e20fb

Comment by auto [ 08/Jul/10 ]

Author:

{'login': 'astaple', 'name': 'Aaron', 'email': 'aaron@10gen.com'}

Message: SERVER-1159 match array with null
http://github.com/mongodb/mongo/commit/74b36196e113483f568dddd1d722bbcbf138552d

Generated at Thu Feb 08 02:56:14 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.