0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-11-30 17:10:48 +01:00
mongodb/jstests/indexd.js
2009-11-09 13:10:30 -05:00

11 lines
183 B
JavaScript

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({});