Details
-
Bug
-
Resolution: Done
-
Major - P3
-
None
-
None
Description
I'm not sure if this is exactly a bug. If an object contains an array, it doesn't match itself, which is strange:
> db.y.count()
|
1
|
> x=db.y.findOne()
|
{"_id" : ObjectId( "4a57873729a435a962700b96") , "mongo" : "hacker" , "just" : BinData type: 2 len: 9 , "and" : ["an","array","reference"] , "with" : {"a" : "reference"}}
|
> db.y.remove(x)
|
>
|
>
|
> db.y.find()
|
{"_id" : ObjectId( "4a57873729a435a962700b96") , "mongo" : "hacker" , "just" : BinData type: 2 len: 9 , "and" : ["an","array","reference"] , "with" : {"a" : "reference"}}
|
>
|
Attachments
Issue Links
- is depended on by
-
SERVER-279 Multi-key indexes with empty arrays may cause incorrect results on queries that don't use the full index
-
- Closed
-
- related to
-
SERVER-43502 Complete TODO listed in SERVER-146
-
- Closed
-
-
SERVER-44222 Complete TODO listed in SERVER-146
-
- Closed
-