diff options
Diffstat (limited to 'jstests/update_multi6.js')
-rw-r--r-- | jstests/update_multi6.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/jstests/update_multi6.js b/jstests/update_multi6.js new file mode 100644 index 00000000000..dcc1ff04034 --- /dev/null +++ b/jstests/update_multi6.js @@ -0,0 +1,10 @@ + +t = db.update_multi6 +t.drop(); + +t.update( { _id : 1 } , { _id : 1 , x : 1 , y : 2 } , true , false ); +assert( t.findOne( { _id : 1 } ) , "A" ) + +t.update( { _id : 2 } , { _id : 2 , x : 1 , y : 2 } , true , true ); +assert( db.getLastError() , "B: " + tojson(db.getLastErrorCmd()) ); + |