@@ -12,7 +12,7 @@ and sorting on language strings in a locale-aware fashion.
12
12
13
13
A driver MUST support a Collation option for each of the relevant operations in server versions >= 3.4 (maxWireVersion
14
14
5\) and MUST throw an error if a user supplies a Collation option for the operation and the selected server has
15
- maxWireVersion \ < 5 or if the user is using opcode-based unacknowledged writes.
15
+ maxWireVersion < 5 or if the user is using opcode-based unacknowledged writes.
16
16
17
17
The CRUD and Index Management specs include the collation option in descriptions of API elements where it is supported.
18
18
This document provides more details on the specific driver behavior required to handle the collation option.
43
43
Server versions earlier than 3.4 don't always throw an error if an unknown option is supplied to certain operations.
44
44
Because a Collation defines how documents are matched and sorted for both read and write operations, behavior
45
45
differences between server versions are significant. Drivers therefore MUST throw an error if a user specifies a
46
- Collation and the selected server has a maxWireVersion \ < 5 or if using opcode-based unacknowledged writes.
46
+ Collation and the selected server has a maxWireVersion < 5 or if using opcode-based unacknowledged writes.
47
47
48
48
## Specification
49
49
@@ -140,7 +140,7 @@ hinting an index. See the [Index Management specification](../index-management/i
140
140
### Require maxWireVersion 5
141
141
142
142
Drivers MUST require the server's maxWireVersion >= 5 to support Collations. When a collation is explicitly specified
143
- for a server with maxWireVersion \ < 5, the driver MUST raise an error.
143
+ for a server with maxWireVersion < 5, the driver MUST raise an error.
144
144
145
145
### Opcode-based Unacknowledged Writes
146
146
@@ -160,7 +160,7 @@ db.command({
160
160
161
161
### BulkWrite API
162
162
163
- If maxWireVersion \ < 5, the driver MUST inspect each BulkWrite operation model for a collation and MUST raise an error
163
+ If maxWireVersion < 5, the driver MUST inspect each BulkWrite operation model for a collation and MUST raise an error
164
164
and MUST NOT send any operations to the server if a collation is explicitly specified on an operation. For example, the
165
165
user will provide BulkWrite operation models as in the following example:
166
166
@@ -178,7 +178,7 @@ db.collection.bulkWrite([
178
178
]);
179
179
```
180
180
181
- The driver must inspect each operation for a Collation if maxWireVersion is \ < 5 and fail the entire bulkWrite if a
181
+ The driver must inspect each operation for a Collation if maxWireVersion is < 5 and fail the entire bulkWrite if a
182
182
collation was explicitly specified. In the example above, that means even the insertOne (without Collation) MUST NOT be
183
183
sent.
184
184
@@ -192,7 +192,7 @@ custom name must be provided for one of them. Then, the test should ensure that
192
192
delete_one is called with an index name.
193
193
194
194
Drivers should also test that errors are raised in each place Collation can be provided to a API method and the selected
195
- server has maxWireVersion \ < 5.
195
+ server has maxWireVersion < 5.
196
196
197
197
## Backwards Compatibility
198
198
0 commit comments