diff options
Diffstat (limited to 'jstests/core/basic9.js')
-rw-r--r-- | jstests/core/basic9.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/jstests/core/basic9.js b/jstests/core/basic9.js index 814b72b2ae7..3078fcad2bc 100644 --- a/jstests/core/basic9.js +++ b/jstests/core/basic9.js @@ -1,14 +1,14 @@ // Tests that $<prefix> field names are not allowed, but you can use a $ anywhere else. t = db.getCollection( "foo_basic9" ); -t.drop() +t.drop(); // more diagnostics on bad save, if exception fails doBadSave = function(param) { - print("doing save with " + tojson(param)) + print("doing save with " + tojson(param)); var res = t.save(param); // Should not get here. print('Should have errored out: ' + tojson(res)); -} +}; t.save({foo$foo:5}); t.save({foo$:5}); |