summaryrefslogtreecommitdiff
path: root/jstests/objid2.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/objid2.js')
-rw-r--r--jstests/objid2.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/jstests/objid2.js b/jstests/objid2.js
new file mode 100644
index 00000000000..a28c18fca15
--- /dev/null
+++ b/jstests/objid2.js
@@ -0,0 +1,7 @@
+t = db.objid2;
+t.drop();
+
+t.save( { _id : 517 , a : "hello" } )
+
+assert.eq( t.findOne().a , "hello" );
+assert.eq( t.findOne()._id , 517 );