[CDRIVER-2527] Collation not sent for delete_one or delete_many Created: 05/Mar/18  Updated: 28/Oct/23  Resolved: 08/Mar/18

Status: Closed
Project: C Driver
Component/s: None
Affects Version/s: 1.9.3
Fix Version/s: 1.10.0

Type: Bug Priority: Major - P3
Reporter: Kevin Albertson Assignee: Kevin Albertson
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

When implementing delete_on on the swift driver, kaitlin.mahar@10gen.com saw errors about collation on mongoc_collection_delete_one. After investigating it looks like collation isn't being sent for delete_one and delete_many in master.

It looks like it also effects pre-IDL changes, but in a different way. Based on the server error, it looks like pre-IDL changes we're sending collation but as a command option, not an option inside the deletes array (https://docs.mongodb.com/manual/reference/command/delete/). I do not think this affects pre-1.9 since delete_one and delete_many were introduced in 1.9.



 Comments   
Comment by Githook User [ 06/Mar/18 ]

Author:

{'email': 'kevin.albertson@10gen.com', 'name': 'Kevin Albertson', 'username': 'kevinAlbs'}

Message: CDRIVER-2527 fix collation on delete helpers
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/8744119d0293908358f3aec5e95b5534ca0c47c0

Generated at Wed Feb 07 21:15:30 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.