2010-01-16 10:25:32 -05:00
|
|
|
|
|
|
|
|
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;
|
2013-07-09 00:15:42 -04:00
|
|
|
assert.docEq( correct , got , "A" )
|
2010-01-16 10:25:32 -05:00
|
|
|
|