Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

test for compound keys

  • Loading branch information...
commit 431714d0eac19a195f143365925be5ac512ee7b4 1 parent abdc594
@erh erh authored
Showing with 8 additions and 0 deletions.
  1. +8 −0 jstests/find7.js
View
8 jstests/find7.js
@@ -0,0 +1,8 @@
+t = db.find7;
+t.drop();
+
+x = { "_id" : { "d" : 3649, "w" : "signed" }, "u" : { "3649" : 5 } };
+t.insert(x );
+assert.eq( x , t.findOne() , "A1" );
+assert.eq( x , t.findOne( { _id : x._id } ) , "A2" );
+
Please sign in to comment.
Something went wrong with that request. Please try again.