Files
mongo/jstests/indexd.js
Eliot Horowitz 76d849e090 fix drop fallout
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({});