diff options
Diffstat (limited to 'jstests/indexd.js')
-rw-r--r-- | jstests/indexd.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/jstests/indexd.js b/jstests/indexd.js new file mode 100644 index 00000000000..33246ad9812 --- /dev/null +++ b/jstests/indexd.js @@ -0,0 +1,10 @@ + +t = db.indexd; +t.drop(); + +t.save( { a : 1 } ); +t.ensureIndex( { a : 1 } ); +assert.throws( function(){ db.indexd.$_id_.drop(); } ); +assert( t.drop() ); + +//db.indexd.$_id_.remove({}); |