summaryrefslogtreecommitdiff
path: root/jstests/objid2.js
blob: a28c18fca159be4081afeddaca15047faf310d45 (plain)
1
2
3
4
5
6
7
t = db.objid2;
t.drop();

t.save( { _id : 517 , a : "hello" } )

assert.eq( t.findOne().a , "hello" );
assert.eq( t.findOne()._id , 517 );