[GODRIVER-1177] struct supports nil Marshal to int, bool, string etc Created: 02/Jul/19  Updated: 16/Nov/21  Resolved: 08/Jul/19

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

Type: Task Priority: Major - P3
Reporter: Tiansheng Ren Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File image-2019-07-02-20-35-13-761.png    

 Description   

 

In the bson Marshal structure, when the structure property value is nil, the default value is used.



 Comments   
Comment by Esha Bhargava [ 08/Jul/19 ]

same as GODRIVER-1175

Comment by Tiansheng Ren [ 04/Jul/19 ]

github pr struct compatible with null    https://github.com/mongodb/mongo-go-driver/pull/166

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