diff options
author | Eliot Horowitz <eliot@10gen.com> | 2010-11-01 23:43:57 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2010-11-01 23:43:57 -0400 |
commit | 02d2d60cafb4c13f66abba97ce93b5630ecc664c (patch) | |
tree | 7db312fd191b6b65df8bd0f9ceb9919ba7f394de /jstests/insert2.js | |
parent | 2dd5f90b5d2ae403abbf895316f08262600df380 (diff) | |
download | mongo-02d2d60cafb4c13f66abba97ce93b5630ecc664c.tar.gz |
check for $ mods on insert SERVER-1954
Diffstat (limited to 'jstests/insert2.js')
-rw-r--r-- | jstests/insert2.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/jstests/insert2.js b/jstests/insert2.js new file mode 100644 index 00000000000..442e7dcc8fe --- /dev/null +++ b/jstests/insert2.js @@ -0,0 +1,8 @@ + +t = db.insert2 +t.drop() + +assert.isnull( t.findOne() , "A" ) +t.insert( { z : 1 , $inc : { x : 1 } } , true ); +assert.isnull( t.findOne() , "B" ) + |