mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 01:21:03 +01:00
8 lines
127 B
JavaScript
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" )
|
|
|