blob: 73b40206f4ca92a309eef9e03fe4f76e726869d2 (
plain)
1
2
3
4
5
6
7
8
9
10
|
var t = db.geo4;
t.drop();
t.insert( { zip : "06525" , loc : [ 41.352964 , 73.01212 ] } );
t.ensureIndex( { loc : "2d" }, { bits : 33 } );
assert.eq( db.getLastError() , "can't have more than 32 bits in geo index" , "a" );
t.ensureIndex( { loc : "2d" }, { bits : 32 } );
assert( !db.getLastError(), "b" );
|