0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00
mongodb/jstests/error4.js

8 lines
127 B
JavaScript
Raw Normal View History

2009-12-28 23:12:49 +01:00
t = db.error4;
t.drop()
t.insert( { _id : 1 } )
t.insert( { _id : 1 } )
assert.eq( 11000 , db.getLastErrorCmd().code , "A" )