summaryrefslogtreecommitdiff
path: root/jstests/updateb.js
blob: ee7c531052f26c1bff932a60c908d67c5ef8a54d (plain)
1
2
3
4
5
6
7
8
9
10
11

t = db.updateb;
t.drop();

t.update( { "x.y" : 2 } , { $inc : { a : 7 } } , true );

correct = { a : 7 , x : { y : 2 } };
got = t.findOne();
delete got._id;
assert.eq( correct , got , "A" )