From a63ddd2455e456c602e2ba9a4f4da0a424068f94 Mon Sep 17 00:00:00 2001 From: "J. Rassi" Date: Wed, 1 Jun 2016 17:20:47 -0400 Subject: SERVER-23611 Queries use collection default collation, if unspecified --- src/mongo/db/query/canonical_query.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/mongo/db/query/canonical_query.h') 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 collator); + // Debugging std::string toString() const; std::string toStringShort() const; -- cgit v1.2.1