blob: 0777c68c7459e21df2e5c82eed700301c4b77249 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
t = db.update_blank1;
t.drop();
orig = {
"": 1,
_id: 2, "a": 3, "b": 4
};
t.insert(orig);
var res = t.update({}, {$set: {"c": 5}});
print(res);
orig["c"] = 5;
assert.docEq(orig, t.findOne(), "after $set"); // SERVER-2651
|