[GODRIVER-1590] Change transformValue to use MarshalValue Created: 23/Apr/20  Updated: 28/Oct/23  Resolved: 24/Apr/20

Status: Closed
Project: Go Driver
Component/s: CRUD
Affects Version/s: None
Fix Version/s: 1.4.0

Type: Task Priority: Major - P3
Reporter: Divjot Arora (Inactive) Assignee: Divjot Arora (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by GODRIVER-1582 'CommitQuorum' option support for 'cr... Closed

 Description   

transformValue only handles strings and documents. The commitQuorum option being added in GODRIVER-1582 supports strings and numbers. Instead of adding more special cases, we can leverage bson.MarshalValue, which will already handle all of the different numerical types. We should also ensure that all users of transformValue have integration tests to catch regressions.



 Comments   
Comment by Githook User [ 24/Apr/20 ]

Author:

{'name': 'Divjot Arora', 'email': 'divjot.arora@10gen.com', 'username': 'divjotarora'}

Message: GODRIVER-1590 Use MarshalValue in transformValue helper (#386)
Branch: master
https://github.com/mongodb/mongo-go-driver/commit/7b75c3c0a27a849b341711096568d47d655ad464

Comment by Divjot Arora (Inactive) [ 23/Apr/20 ]

https://github.com/mongodb/mongo-go-driver/pull/386

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