diff options
author | Eric Cox <eric.cox@mongodb.com> | 2020-01-21 20:31:02 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-02-13 14:58:45 +0000 |
commit | e289b78c61033674f6440d9ddc402b50903717ac (patch) | |
tree | f468a4ea2a6c68e3bbf3e23522926e05e4f92aa4 /src/mongo/db/query/query_solution_test.cpp | |
parent | 173e12f195cf456c6f08d82131256d625c1f583f (diff) | |
download | mongo-e289b78c61033674f6440d9ddc402b50903717ac.tar.gz |
SERVER-45454 Desugar where to expr + function
Diffstat (limited to 'src/mongo/db/query/query_solution_test.cpp')
-rw-r--r-- | src/mongo/db/query/query_solution_test.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mongo/db/query/query_solution_test.cpp b/src/mongo/db/query/query_solution_test.cpp index 97b14fec0ce..142ed16fd2a 100644 --- a/src/mongo/db/query/query_solution_test.cpp +++ b/src/mongo/db/query/query_solution_test.cpp @@ -46,7 +46,6 @@ namespace { using namespace mongo; - /** * Make a minimal IndexEntry from just a key pattern. A dummy name will be added. */ @@ -720,7 +719,7 @@ auto createMatchExprAndProjection(const BSONObj& query, const BSONObj& projObj) auto opCtx = serviceCtx.makeOperationContext(); const CollatorInterface* collator = nullptr; const boost::intrusive_ptr<ExpressionContext> expCtx( - new ExpressionContext(opCtx.get(), collator)); + new ExpressionContext(opCtx.get(), collator, NamespaceString("test.dummy"))); StatusWithMatchExpression queryMatchExpr = MatchExpressionParser::parse(query, std::move(expCtx)); ASSERT(queryMatchExpr.isOK()); |