2014-01-12 21:41:57 -05:00
|
|
|
t = db.insert_long_index_key;
|
|
|
|
|
t.drop();
|
|
|
|
|
|
|
|
|
|
var s = new Array(2000).toString();
|
|
|
|
|
t.ensureIndex( { x : 1 } );
|
|
|
|
|
|
2014-02-28 10:31:32 -05:00
|
|
|
t.insert({ x: 1 });
|
|
|
|
|
t.insert({ x: s });
|
2014-01-12 21:41:57 -05:00
|
|
|
|
|
|
|
|
assert.eq( 1, t.count() );
|