[SERVER-1160] {a: undefined} broken with index Created: 26/May/10  Updated: 12/Jul/16  Resolved: 16/Dec/13

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

Type: Bug Priority: Minor - P4
Reporter: Mathias Stearn Assignee: Benety Goh
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-5481 query on undefined field matches empt... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Participants:

 Description   

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

{a:undefined}

)

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

> db.foo.ensureIndex(

{a:1}

)
> db.foo.find(

{a:undefined}

)
> db.foo.find(

{a:undefined}

).explain()
{
"cursor" : "BtreeCursor a_1",
"indexBounds" : [
[

{ "a" : null }

,

{ "a" : null }

]
],
"nscanned" : 0,
"nscannedObjects" : 0,
"n" : 0,
"millis" : 0,
"oldPlan" : {
"cursor" : "BtreeCursor a_1",
"indexBounds" : [
[

{ "a" : null }

,

{ "a" : null }

]
]
},
"allPlans" : [
{
"cursor" : "BtreeCursor a_1",
"indexBounds" : [
[

{ "a" : null }

,

{ "a" : null }

]
]
}
]
}



 Comments   
Comment by Githook User [ 16/Dec/13 ]

Author:

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

Message: SERVER-1160 removed invalid {$in: [undefined]} test
Branch: master
https://github.com/mongodb/mongo/commit/91ee7a4219678449d3b8e626181abaae57cee31d

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