Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

test that's already working

  • Loading branch information...
commit 5b6a5a90ac496448abb3ebf831191ba13a42bd1e 1 parent d456901
@erh erh authored
Showing with 10 additions and 0 deletions.
  1. +10 −0 jstests/update_multi6.js
View
10 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() );
+
Please sign in to comment.
Something went wrong with that request. Please try again.