diff options
author | J. Rassi <rassi@10gen.com> | 2016-06-01 17:20:47 -0400 |
---|---|---|
committer | J. Rassi <rassi@10gen.com> | 2016-06-13 14:49:25 -0400 |
commit | a63ddd2455e456c602e2ba9a4f4da0a424068f94 (patch) | |
tree | 979b4b8592449c37365e08cebb68141203706e48 /src/mongo/db/query/canonical_query.h | |
parent | ce22832310994048040faea2cd6895975dc4c3c5 (diff) | |
download | mongo-a63ddd2455e456c602e2ba9a4f4da0a424068f94.tar.gz |
SERVER-23611 Queries use collection default collation, if unspecified
Diffstat (limited to 'src/mongo/db/query/canonical_query.h')
-rw-r--r-- | src/mongo/db/query/canonical_query.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mongo/db/query/canonical_query.h b/src/mongo/db/query/canonical_query.h index ac2e6c2b4a9..3ff0ecb2d8a 100644 --- a/src/mongo/db/query/canonical_query.h +++ b/src/mongo/db/query/canonical_query.h @@ -116,6 +116,15 @@ public: return _collator.get(); } + /** + * Sets this CanonicalQuery's collator, and sets the collator on this CanonicalQuery's match + * expression tree. + * + * This setter can be used to override the collator that was created from the query request + * during CanonicalQuery construction. + */ + void setCollator(std::unique_ptr<CollatorInterface> collator); + // Debugging std::string toString() const; std::string toStringShort() const; |