diff options
author | Siyuan Zhou <siyuan.zhou@mongodb.com> | 2017-07-06 18:37:12 -0400 |
---|---|---|
committer | Siyuan Zhou <siyuan.zhou@mongodb.com> | 2017-08-24 17:36:41 -0400 |
commit | 7faaefa4975c2e3ec43e28e38028d9b5215e5978 (patch) | |
tree | 8066d8d9e46630e9e8945aca2ec156e1139fd295 /src/mongo/dbtests/jsobjtests.cpp | |
parent | 4b95c9d2ea4bce67fcf42ed9f712ca94607d8009 (diff) | |
download | mongo-7faaefa4975c2e3ec43e28e38028d9b5215e5978.tar.gz |
SERVER-29961 Add OR BSON helper and use it for change streams.
Diffstat (limited to 'src/mongo/dbtests/jsobjtests.cpp')
-rw-r--r-- | src/mongo/dbtests/jsobjtests.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/mongo/dbtests/jsobjtests.cpp b/src/mongo/dbtests/jsobjtests.cpp index 9f870c06168..a02f611fe1b 100644 --- a/src/mongo/dbtests/jsobjtests.cpp +++ b/src/mongo/dbtests/jsobjtests.cpp @@ -39,6 +39,7 @@ #include "mongo/bson/bsonobj_comparator.h" #include "mongo/bson/simple_bsonelement_comparator.h" #include "mongo/bson/util/builder.h" +#include "mongo/db/bson/bson_helper.h" #include "mongo/db/bson/dotted_path_support.h" #include "mongo/db/jsobj.h" #include "mongo/db/json.h" @@ -1544,10 +1545,10 @@ class LabelishOr : public LabelBase { << "p"))); } BSONObj actual() { - return OR(BSON("a" << GT << 1 << LTE << "x"), - BSON("b" << NE << 1 << NE << "f" << NE << 22.3), - BSON("x" - << "p")); + return BSON(OR(BSON("a" << GT << 1 << LTE << "x"), + BSON("b" << NE << 1 << NE << "f" << NE << 22.3), + BSON("x" + << "p"))); } }; |