diff options
Diffstat (limited to 'jstests/objid2.js')
-rw-r--r-- | jstests/objid2.js | 7 |
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 ); |