0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-11-30 17:10:48 +01:00

minor: specify mongo namespace to avoid clash on windows

This commit is contained in:
Mike Dirolf 2009-09-18 14:26:15 -04:00
parent 53e89efce6
commit a2261b1eb6
2 changed files with 2 additions and 2 deletions

View File

@ -652,7 +652,7 @@ namespace JsobjTests {
return BSON( "a" << BSON( "$size" << 4 ) );
}
BSONObj actual() {
return BSON( "a" << SIZE << 4 );
return BSON( "a" << mongo::SIZE << 4 );
}
};

View File

@ -471,7 +471,7 @@ namespace QueryTests {
const char *ns = "unittests.querytests.Size";
client().insert( ns, fromjson( "{a:[1,2,3]}" ) );
client().ensureIndex( ns, BSON( "a" << 1 ) );
ASSERT( client().query( ns, QUERY( "a" << SIZE << 3 ).hint( BSON( "a" << 1 ) ) )->more() );
ASSERT( client().query( ns, QUERY( "a" << mongo::SIZE << 3 ).hint( BSON( "a" << 1 ) ) )->more() );
}
};