0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 01:21:03 +01:00
mongodb/jstests/error4.js
2009-12-28 17:12:49 -05:00

8 lines
127 B
JavaScript

t = db.error4;
t.drop()
t.insert( { _id : 1 } )
t.insert( { _id : 1 } )
assert.eq( 11000 , db.getLastErrorCmd().code , "A" )