-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
mongoc_collection_find_with_opts() should return an error to the user if a collation is specified and the server does not support read commands. Currently, no error is returned to the user, and the collation is passed to the server with the invalid query modifier "$collation" (which is ignored by the server). Tested with libmongoc 1.5.0-rc2 against server version 2.6.12.
Relevant excerpt from the collation spec:
Drivers therefore MUST throw an error if a user specifies a Collation and the selected server has a maxWireVersion < 5 or if using opcode-based unacknowledged writes.
- is depended on by
-
CXX-971 Support providing collation per operation
- Closed
-
CXX-1132 Test that collection::find(), collection::find_one(), and collection::find_one_and_*() fail with error if collation specified and server lacks collation support
- Closed
- is related to
-
CDRIVER-1779 mongoc_collection_find_and_modify_with_opts() should return error if collation specified and connection max wire version < 5
- Closed
- related to
-
CDRIVER-1522 Add mongoc_collection_find_with_opts
- Closed