Fix for bug226.

Add struct fieldName to groupKey to have a unique groupKey for each field object.
This commit is contained in:
go-jet 2023-04-13 10:45:08 +02:00
parent c7962aba71
commit 14bd3b6c3b
2 changed files with 93 additions and 19 deletions

View file

@ -238,7 +238,7 @@ func mapRowToStruct(
if fieldMap.complexType {
var changed bool
changed, err = mapRowToDestinationValue(scanContext, groupKey, fieldValue, &field)
changed, err = mapRowToDestinationValue(scanContext, concat(groupKey, ":", field.Name), fieldValue, &field)
if err != nil {
return