diff options
Diffstat (limited to 'jstests/core/or8.js')
-rw-r--r-- | jstests/core/or8.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/jstests/core/or8.js b/jstests/core/or8.js index 41537dbdf83..4af81ec4829 100644 --- a/jstests/core/or8.js +++ b/jstests/core/or8.js @@ -14,7 +14,7 @@ t.find({"$or": [{"PropA": {"$lt": "b"}}, {"PropA": {"$lt": "b", "$gt": "a"}}]}). t.save({a: 1}); t.save({a: 3}); -t.ensureIndex({a: 1}); +t.createIndex({a: 1}); t.find({$or: [{a: {$in: []}}]}).toArray(); assert.eq.automsg("2", "t.find({ $or: [ { a: {$in:[]} }, {a:1}, {a:3} ] } ).toArray().length"); assert.eq.automsg("2", "t.find({ $or: [ {a:1}, { a: {$in:[]} }, {a:3} ] } ).toArray().length"); @@ -24,8 +24,8 @@ assert.eq.automsg("2", "t.find({ $or: [ {a:1}, {a:3}, { a: {$in:[]} } ] } ).toAr t.drop(); t.save({a: {b: 1, c: 1}}); -t.ensureIndex({'a.b': 1}); -t.ensureIndex({'a.c': 1}); +t.createIndex({'a.b': 1}); +t.createIndex({'a.c': 1}); assert.eq(1, t.find({$or: [{'a.b': 1}, {'a.c': 1}]}).itcount()); t.remove({}); |