summaryrefslogtreecommitdiff
path: root/jstests/update_blank1.js
blob: 846b8a2b46a4a9ce69b9ae30a63ef1961a9af46c (plain)
1
2
3
4
5
6
7
8
9
10

t = db.update_blank1
t.drop();

orig = { "" : 1 , _id : 2 , "a" : 3 , "b" : 4 };
t.insert( orig );
t.update( {} , { $set : { "c" :  5 } } );
print( db.getLastError() );
orig["c"] = 5;
assert.eq( orig , t.findOne() , "after $set" ); // SERVER-2651