Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

SERVER-2898 additional test case

  • Loading branch information...
commit 64f3b082265bb0cd19d258ab25fd1c3296fd739f 1 parent d0854da
@astaple astaple authored
Showing with 8 additions and 0 deletions.
  1. +8 −0 jstests/array_match2.js
View
8 jstests/array_match2.js
@@ -15,3 +15,11 @@ if ( 0 ) { // SERVER-2898
assert.eq( 1, t.count( {'a.1.foo':4} ) );
}
assert.eq( 1, t.count( {'a.1.foo':5} ) );
+
+// Same issue with the $exists operator
+t.remove();
+t.save( {a:[{1:{foo:4}},{}]} );
+assert.eq( 1, t.count( {'a.1':{$exists:true}} ) );
+if ( 0 ) { // SERVER-2898
+assert.eq( 1, t.count( {'a.1.foo':{$exists:true}} ) );
+}
Please sign in to comment.
Something went wrong with that request. Please try again.