[GODRIVER-315] Mongo shipped BSON marshaller to support nested structs using embedding Created: 27/Mar/18 Updated: 13/Apr/18 Resolved: 13/Apr/18 |
|
| Status: | Closed |
| Project: | Go Driver |
| Component/s: | BSON |
| Affects Version/s: | 0.0.2 |
| Fix Version/s: | 0.0.3 |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Volodymyr | Assignee: | Kristofer Brandow (Inactive) |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Linux |
||
| Issue Links: |
|
||||||||||||||||
| Description |
|
| Comments |
| Comment by Jeffrey Yemin [ 13/Apr/18 ] |
|
Closing this as a duplicate of |
| Comment by Kristofer Brandow (Inactive) [ 05/Apr/18 ] |
|
Hi Volodymyr, We've merged a commit that should fix this. Can you please confirm? --Kris |
| Comment by Githook User [ 05/Apr/18 ] |
|
Author: {'email': 'kris@mongodb.com', 'name': 'Kris Brandow', 'username': 'skriptble'}Message: Handle nil properly in BSON encoder Added support for nil interfaces, maps, pointers, and slices. Change-Id: I96036138acb745b1f42d3190e9664366bb85a9a6 |
| Comment by Kristofer Brandow (Inactive) [ 27/Mar/18 ] |
|
I created |
| Comment by Kristofer Brandow (Inactive) [ 27/Mar/18 ] |
|
Hi Volodymyr, It looks like we aren't properly handling the case where a struct property is an interface and is nil. This is something we should definitely be handling, I will add a ticket for this. Thanks for the bug report! --Kris |
| Comment by Volodymyr [ 27/Mar/18 ] |
|
Hi guys, |