summaryrefslogtreecommitdiff
path: root/src/mongo/db/matcher/expression_leaf.cpp
diff options
context:
space:
mode:
authorNick Zolnierz <nicholas.zolnierz@mongodb.com>2017-08-24 13:23:41 -0400
committerNick Zolnierz <nicholas.zolnierz@mongodb.com>2017-09-19 13:47:58 -0400
commit4574a7c8dd12650eceee1e197b35ba47dfbb7f8e (patch)
tree9709578bb7347d0395e900b7ccace7b4cb5c156d /src/mongo/db/matcher/expression_leaf.cpp
parentaf7387affece778a2507666b8bc5f502778fe1b8 (diff)
downloadmongo-4574a7c8dd12650eceee1e197b35ba47dfbb7f8e.tar.gz
SERVER-30176: Extend the JSON Schema parser to handle logical restriction keywords (enum only)
Diffstat (limited to 'src/mongo/db/matcher/expression_leaf.cpp')
-rw-r--r--src/mongo/db/matcher/expression_leaf.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/db/matcher/expression_leaf.cpp b/src/mongo/db/matcher/expression_leaf.cpp
index 56238d995b4..6a3502566e8 100644
--- a/src/mongo/db/matcher/expression_leaf.cpp
+++ b/src/mongo/db/matcher/expression_leaf.cpp
@@ -122,7 +122,8 @@ bool ComparisonMatchExpression::matchesSingleElement(const BSONElement& e,
}
}
- int x = compareElementValues(e, _rhs, _collator);
+ int x = BSONElement::compareElements(
+ e, _rhs, BSONElement::ComparisonRules::kConsiderFieldName, _collator);
switch (matchType()) {
case LT: