summaryrefslogtreecommitdiff
path: root/jstests/set1.js
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2010-01-16 11:16:30 -0500
committerEliot Horowitz <eliot@10gen.com>2010-01-16 11:16:30 -0500
commit53b5dae92e8c045f6aa94add14dc0564ee9ee6e9 (patch)
treedcf09d3e7eab9832962a5c3f88f98d94447f8e40 /jstests/set1.js
parent6830dd0dd0462492ec0547050fb0eeb2908591b3 (diff)
downloadmongo-53b5dae92e8c045f6aa94add14dc0564ee9ee6e9.tar.gz
check for bad $set where set to an object with a . SERVER-261
Diffstat (limited to 'jstests/set1.js')
-rw-r--r--jstests/set1.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/set1.js b/jstests/set1.js
index 2af01e66bfc..d741387af58 100644
--- a/jstests/set1.js
+++ b/jstests/set1.js
@@ -4,6 +4,6 @@ t.drop();
t.insert( { _id : 1, emb : {} });
t.update( { _id : 1 }, { $set : { emb : { 'a.dot' : 'data'} }});
+assert.eq( { _id : 1 , emb : {} } , t.findOne() , "A" );
-printjson( t.findOne() ); // SERVER-261