diff options
author | Tess Avitabile <tess.avitabile@mongodb.com> | 2016-04-08 15:07:20 -0400 |
---|---|---|
committer | Tess Avitabile <tess.avitabile@mongodb.com> | 2016-04-13 10:05:36 -0400 |
commit | 4c1e3619a67041f589eb65da29a146629e88e280 (patch) | |
tree | e02298ac73578110888c90a492e9e0d63f54b0b8 /src/mongo/db/matcher/expression_algo.cpp | |
parent | 56a903eb64f5b9865f1b54b90334f02cb5adf6dd (diff) | |
download | mongo-4c1e3619a67041f589eb65da29a146629e88e280.tar.gz |
SERVER-23348 Add a collator to ComparisonMatchExpression, InMatchExpression
Diffstat (limited to 'src/mongo/db/matcher/expression_algo.cpp')
-rw-r--r-- | src/mongo/db/matcher/expression_algo.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/db/matcher/expression_algo.cpp b/src/mongo/db/matcher/expression_algo.cpp index 79059c204d1..39f22830480 100644 --- a/src/mongo/db/matcher/expression_algo.cpp +++ b/src/mongo/db/matcher/expression_algo.cpp @@ -154,7 +154,8 @@ bool _isSubsetOf(const MatchExpression* lhs, const ComparisonMatchExpression* rh } for (BSONElement elem : arrayEntries.equalities()) { // Each element in the $in-array represents an equality predicate. - EqualityMatchExpression equality; + // TODO SERVER-23618: pass the appropriate collator to EqualityMatchExpression(). + EqualityMatchExpression equality(nullptr); equality.init(lhs->path(), elem); if (!_isSubsetOf(&equality, rhs)) { return false; |