mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 09:32:32 +01:00
minor: specify mongo namespace to avoid clash on windows
This commit is contained in:
parent
53e89efce6
commit
a2261b1eb6
@ -652,7 +652,7 @@ namespace JsobjTests {
|
|||||||
return BSON( "a" << BSON( "$size" << 4 ) );
|
return BSON( "a" << BSON( "$size" << 4 ) );
|
||||||
}
|
}
|
||||||
BSONObj actual() {
|
BSONObj actual() {
|
||||||
return BSON( "a" << SIZE << 4 );
|
return BSON( "a" << mongo::SIZE << 4 );
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -471,7 +471,7 @@ namespace QueryTests {
|
|||||||
const char *ns = "unittests.querytests.Size";
|
const char *ns = "unittests.querytests.Size";
|
||||||
client().insert( ns, fromjson( "{a:[1,2,3]}" ) );
|
client().insert( ns, fromjson( "{a:[1,2,3]}" ) );
|
||||||
client().ensureIndex( ns, BSON( "a" << 1 ) );
|
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() );
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user