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

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

t.insert( { "test1" : { "test2" : { "abcdefghijklmnopqrstu" : {"id":1} } } } );
t.update( {}, {"$set":{"test1.test2.abcdefghijklmnopqrstuvwxyz":{"id":2}}})

x = t.findOne();
assert.eq( 1 , x.test1.test2.abcdefghijklmnopqrstu.id , "A" );
assert.eq( 2 , x.test1.test2.abcdefghijklmnopqrstuvwxyz.id , "B" );