mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 09:32:32 +01:00
13 lines
283 B
JavaScript
13 lines
283 B
JavaScript
|
|
t = db.update_blank1
|
|
t.drop();
|
|
|
|
orig = { _id : 1 , "" : 1 , "a" : 2 , "b" : 3 };
|
|
t.insert( orig );
|
|
assert.eq( orig , t.findOne() , "A1" );
|
|
|
|
t.update( {} , { $set : { "c" : 1 } } );
|
|
print( db.getLastError() );
|
|
orig["c"] = 1;
|
|
//assert.eq( orig , t.findOne() , "A2" ); // SERVER-2651
|