-
Type: Bug
-
Resolution: Done
-
Priority: Minor - P4
-
Affects Version/s: 1.6.5
-
Component/s: Index Maintenance
-
None
-
Environment:Ubuntu 10.04.1 LTS, db version v1.6.5, pdfile version 4.5
-
ALL
The following example is based on the in6.js test:
t = db.jstests_in6;
t.drop();
t.save(
{key: []} );
t.save(
);
t.save(
);
t.save(
);
t.save( {} );
function doTest() {
assert.eq.automsg( "1", "t.count(
)" );
assert.eq.automsg( "1", "t.count( {key:{$in:[[]]}} )" );
}
doTest();
t.ensureIndex(
);
doTest();
The first query using
{key: []}works as expected as long as there is no index (seems to be the same as http://jira.mongodb.org/browse/SERVER-1943), but the second query {key:{$in:[[]]}} returns nothing in both cases.
- depends on
-
SERVER-2829 arrays do not match themselves when part of a $in expression
- Closed