summaryrefslogtreecommitdiff
path: root/dbtests/mockdbclient.h
diff options
context:
space:
mode:
authorAaron <aaron@10gen.com>2009-04-30 16:25:36 -0400
committerAaron <aaron@10gen.com>2009-04-30 16:25:36 -0400
commitaf59c4ea9e47fdc77a2ae19e625971fa7245424b (patch)
tree8646591c24a4f56eb9b0820c852eac0aa37214b8 /dbtests/mockdbclient.h
parentde01cc8c1aedadb1acfff8d6eb575e28aaf89a86 (diff)
downloadmongo-af59c4ea9e47fdc77a2ae19e625971fa7245424b.tar.gz
core implementation of min/max query parameters
Diffstat (limited to 'dbtests/mockdbclient.h')
-rw-r--r--dbtests/mockdbclient.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/dbtests/mockdbclient.h b/dbtests/mockdbclient.h
index be6c420e5f0..631515ddc45 100644
--- a/dbtests/mockdbclient.h
+++ b/dbtests/mockdbclient.h
@@ -25,7 +25,7 @@ class MockDBClientConnection : public DBClientConnection {
public:
MockDBClientConnection() : connect_() {}
virtual
- BSONObj findOne(const string &ns, Query query, BSONObj *fieldsToReturn = 0, int queryOptions = 0) {
+ BSONObj findOne(const string &ns, Query query, const BSONObj *fieldsToReturn = 0, int queryOptions = 0) {
return one_;
}
virtual
@@ -62,7 +62,7 @@ public:
rp_( rp ),
cc_( cc ) {
}
- virtual BSONObj findOne(const string &ns, Query query, BSONObj *fieldsToReturn = 0, int queryOptions = 0) {
+ virtual BSONObj findOne(const string &ns, Query query, const BSONObj *fieldsToReturn = 0, int queryOptions = 0) {
if ( cc_ ) cc_->beforeCommand();
SetGlobalReplPair s( rp_ );
BSONObjBuilder result;