diff options
author | Nick Zolnierz <nicholas.zolnierz@mongodb.com> | 2018-09-21 14:35:16 -0400 |
---|---|---|
committer | Nick Zolnierz <nicholas.zolnierz@mongodb.com> | 2018-10-04 09:53:18 -0400 |
commit | 41820e4b371e389e8cbe965dc9aff14f657a9040 (patch) | |
tree | 511ef7e3e15a067f0f0a2dd93495b0f3b18e6050 /src/mongo/db/query/planner_access.cpp | |
parent | 1e026f75dc41cca4c7293e42b5b49cb9e46d0ea3 (diff) | |
download | mongo-41820e4b371e389e8cbe965dc9aff14f657a9040.tar.gz |
SERVER-37058: Update with numeric field names inside an array can cause validation to fail
Diffstat (limited to 'src/mongo/db/query/planner_access.cpp')
-rw-r--r-- | src/mongo/db/query/planner_access.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/query/planner_access.cpp b/src/mongo/db/query/planner_access.cpp index 026e994b301..dcbd40c8ee4 100644 --- a/src/mongo/db/query/planner_access.cpp +++ b/src/mongo/db/query/planner_access.cpp @@ -571,7 +571,7 @@ void QueryPlannerAccess::finishWildcardIndexScanNode(QuerySolutionNode* node, // Helper function to check whether the final path component in 'queryPath' is an array index. const auto lastFieldIsArrayIndex = [&multikeyPaths](const auto& queryPath) { return (queryPath.numParts() > 1u && multikeyPaths.count(queryPath.numParts() - 2u) && - queryPath.isNumericPathComponent(queryPath.numParts() - 1u)); + queryPath.isNumericPathComponentStrict(queryPath.numParts() - 1u)); }; // For [MinKey,MaxKey] bounds, we build a range interval on all subpaths of the query path(s). |