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

@@ -189,6 +189,13 @@ namespace QueryOptimizerTests {
}
};
class NoWhere {
public:
void run() {
ASSERT_EQUALS( 0, FieldBoundSet( "ns", BSON( "$where" << 1 ) ).nNontrivialBounds() );
}
};
} // namespace FieldBoundTests
namespace QueryPlanTests {
@@ -830,6 +837,7 @@ namespace QueryOptimizerTests {
add< FieldBoundTests::In >();
add< FieldBoundTests::SimplifiedQuery >();
add< FieldBoundTests::QueryPatternTest >();
add< FieldBoundTests::NoWhere >();
add< QueryPlanTests::NoIndex >();
add< QueryPlanTests::SimpleOrder >();
add< QueryPlanTests::MoreIndexThanNeeded >();