0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00
mongodb/jstests/indexd.js

11 lines
183 B
JavaScript
Raw Normal View History

t = db.indexd;
t.drop();
t.save( { a : 1 } );
t.ensureIndex( { a : 1 } );
2009-11-09 19:10:30 +01:00
assert.throws( function(){ db.indexd.$_id_.drop(); } );
assert( t.drop() );
//db.indexd.$_id_.remove({});