Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

test for SERVER-622

  • Loading branch information...
commit 38b822809b4ee78dc7721b49096b7b52761d155b 1 parent ce7b286
@erh erh authored
Showing with 17 additions and 0 deletions.
  1. +17 −0 jstests/set5.js
View
17 jstests/set5.js
@@ -0,0 +1,17 @@
+
+t = db.set5;
+t.drop();
+
+function check( want , err ){
+ var x = t.findOne();
+ delete x._id;
+ assert.eq( want , x , err );
+}
+
+t.update( { a : 5 } , { $set : { a : 6 , b : null } } , true );
+check( { a : 6 , b : null } , "A" )
+
+t.drop();
+
+t.update( { z : 5 } , { $set : { z : 6 , b : null } } , true );
+check( { b : null , z : 6 } , "B" )
Please sign in to comment.
Something went wrong with that request. Please try again.