Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

SERVER-3445 example

  • Loading branch information...
commit 1df742557ac82a54c1c935ba026aac73d836203d 1 parent 789bd62
@astaple astaple authored
Showing with 13 additions and 0 deletions.
  1. +13 −0 jstests/orl.js
View
13 jstests/orl.js
@@ -0,0 +1,13 @@
+// SERVER-3445 Test using coarse multikey bounds for or range elimination.
+
+t = db.jstests_orl;
+t.drop();
+
+t.ensureIndex( {'a.b':1,'a.c':1} );
+// make the index multikey
+t.save( {a:{b:[1,2]}} );
+
+// SERVER-3445
+if ( 0 ) {
+assert( !t.find( {$or:[{'a.b':2,'a.c':3},{'a.b':2,'a.c':4}]} ).explain().clauses );
+}
Please sign in to comment.
Something went wrong with that request. Please try again.