[SERVER-2829] arrays do not match themselves when part of a $in expression Created: 24/Mar/11  Updated: 12/Jul/16  Resolved: 25/Mar/11

Status: Closed
Project: Core Server
Component/s: Index Maintenance, Querying
Affects Version/s: None
Fix Version/s: 1.9.0

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

Issue Links:
Depends
is depended on by SERVER-2343 $in check for empty array does not work Closed
Operating System: ALL
Participants:

 Description   

t.save(

{key: ['1']}

);
assert.eq( 1, t.count( {key:{$in:[['1']]}} ) );

This fails



 Comments   
Comment by auto [ 28/Mar/11 ]

Author:

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

Message: SERVER-2829 change data type to make test work with v8 implementation as well
https://github.com/mongodb/mongo/commit/f7970605970fe778d7d616a5aebf59fdf28fb32e

Comment by auto [ 25/Mar/11 ]

Author:

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

Message: SERVER-2829 doc
https://github.com/mongodb/mongo/commit/273dda0b61a10084798dc59d455ea735d19074bc

Comment by auto [ 25/Mar/11 ]

Author:

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

Message: SERVER-2829 clean test
https://github.com/mongodb/mongo/commit/131ba64314adb5236af84f9f6a0690c588f83f32

Comment by auto [ 25/Mar/11 ]

Author:

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

Message: SERVER-2829 arrays within an in clause should match themselves
https://github.com/mongodb/mongo/commit/4993a1bf7923b7090f737a1c1727d17e5722e8f7

Comment by Aaron Staple [ 25/Mar/11 ]

Fails without index as well as with an index.

Comment by auto [ 24/Mar/11 ]

Author:

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

Message: SERVER-2829 test
https://github.com/mongodb/mongo/commit/5900879780ba11b3b3a7e4813b856344cf605779

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