Don't use where spec for bounds

This commit is contained in:
Aaron
2009-02-25 11:33:03 -05:00
parent f026c6825d
commit df4bf72f3d
3 changed files with 32 additions and 0 deletions

View File

@@ -119,6 +119,8 @@ namespace mongo {
BSONElement e = i.next();
if ( e.eoo() )
break;
if ( strcmp( e.fieldName(), "$where" ) == 0 )
continue;
if ( getGtLtOp( e ) == JSMatcher::Equality ) {
bounds_[ e.fieldName() ] &= FieldBound( e );
}