-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
mongoc_collection_find_and_modify_with_opts() should return an error to the user if a collation is specified and the connection max wire version is less than 5. Currently, no error is returned to the user, and the collation is passed through to the server and ignored. Tested with libmongoc 1.5.0-rc2 against server version 3.2.10.
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
- related to
-
CDRIVER-1751 mongoc_collection_find_with_opts() should return error if collation specified and connection does not support read commands
- Closed