0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00
mongodb/jstests/update_blank1.js
2011-03-01 15:48:02 -05:00

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