mongo-debian/jstests/insert2.js
2013-03-23 13:40:41 +01:00

8 lines
150 B
JavaScript

t = db.insert2
t.drop()
assert.isnull( t.findOne() , "A" )
t.insert( { z : 1 , $inc : { x : 1 } } , 0, true );
assert.isnull( t.findOne() , "B" )