[GODRIVER-608] Cannot transform struct typed value if there is a map typed fields in it Created: 23/Oct/18 Updated: 27/Oct/23 Resolved: 19/Nov/18 |
|
| Status: | Closed |
| Project: | Go Driver |
| Component/s: | BSON |
| Affects Version/s: | 0.0.15 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Viet An Tran | Assignee: | Kristofer Brandow (Inactive) |
| Resolution: | Gone away | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Ubuntu 18.04, Golang v1.11.1 |
||
| Description |
|
As stated above, I have a struct like this
And then i tried to push a variable of this type to my database like this
However, the program create an error like this
After some trial I found out that if the Raw field is populated it will panic like that, but if I set it to {{nil }}everything will go back to normal. |
| Comments |
| Comment by Kristofer Brandow (Inactive) [ 19/Nov/18 ] |
|
Closed due to inactivity. |
| Comment by Kristofer Brandow (Inactive) [ 29/Oct/18 ] |
|
Can you please try with the latest alpha (v0.0.18) and see if you have the same problem? I was unable to replicate your issue. --Kris |