Permalink
Browse files

SERVER-3445 example

  • Loading branch information...
1 parent 789bd62 commit 1df742557ac82a54c1c935ba026aac73d836203d @astaple astaple committed Jul 19, 2011
Showing with 13 additions and 0 deletions.
  1. +13 −0 jstests/orl.js
View
@@ -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 );
+}

0 comments on commit 1df7425

Please sign in to comment.