[GODRIVER-2937] BSONOptions does not work when set via Collection and Database options Created: 08/Aug/23  Updated: 05/Dec/23  Resolved: 05/Dec/23

Status: Closed
Project: Go Driver
Component/s: Options & Configuration
Affects Version/s: 1.12.0, 1.12.1
Fix Version/s: 1.13.1

Type: Bug Priority: Unknown
Reporter: Matt Dale Assignee: Preston Vasquez
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Documentation Changes: Not Needed
Documentation Changes Summary:

1. What would you like to communicate to the user about this feature?
2. Would you like the user to see examples of the syntax and/or executable code and its output?
3. Which versions of the driver/connector does this apply to?


 Description   

The MergeCollectionOptions and MergeDatabaseOptions do not copy the BSONOptions values when merging options structs. As a result, it's not currently possible to configure BSONOptions on a Collection or Database separately, only a Client.

Reported in a PR comment here.



 Comments   
Comment by Githook User [ 05/Dec/23 ]

Author:

{'name': 'Preston Vasquez', 'email': 'prestonvasquez@icloud.com', 'username': 'prestonvasquez'}

Message: GODRIVER-2937 Copy BSONOptions when merging coll or db opts (#1483)
Branch: release/1.13
https://github.com/mongodb/mongo-go-driver/commit/fdde1764e9e20eb11ab9d8af0c4221bd475f986c

Generated at Thu Feb 08 08:39:41 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.