diff options
author | Eliot Horowitz <eliot@10gen.com> | 2011-01-11 23:01:17 -0500 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2011-01-11 23:01:17 -0500 |
commit | 5b6a5a90ac496448abb3ebf831191ba13a42bd1e (patch) | |
tree | fa873d8619497e1d0e907146e45cbee03cfcfa63 /jstests/update_multi6.js | |
parent | d456901022a2108682c88071fb9129660970a473 (diff) | |
download | mongo-5b6a5a90ac496448abb3ebf831191ba13a42bd1e.tar.gz |
test that's already working
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..3799a272d5f --- /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: " + db.getLastErrorCmd() ); + |