You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In a nested structure, when there is an external attribute with the same name as the internal structure, gconv.Scan will be affected by the position order of the nested structure and the result will be unstable.
#3800
Closed
alaywn opened this issue
Sep 24, 2024
· 0 comments
The text was updated successfully, but these errors were encountered:
alaywn
added
the
bug
It is confirmed a bug, but don't worry, we'll handle it.
label
Sep 24, 2024
Issues-translate-bot
changed the title
【BUG】嵌套结构体中,外部存在一个跟内部结构体种同名的属性时,gconv.Scan受嵌套结构体位置顺序影响而出现结果不稳定的情况
[BUG] In a nested structure, when there is an external attribute with the same name as the internal structure, gconv.Scan will be affected by the position order of the nested structure and the result will be unstable.
Sep 24, 2024
gqcn
changed the title
[BUG] In a nested structure, when there is an external attribute with the same name as the internal structure, gconv.Scan will be affected by the position order of the nested structure and the result will be unstable.
In a nested structure, when there is an external attribute with the same name as the internal structure, gconv.Scan will be affected by the position order of the nested structure and the result will be unstable.
Sep 24, 2024
Go version
go version go1.23.1 darwin/arm64
GoFrame version
2.7.3
Can this bug be reproduced with the latest release?
Option Yes
What did you do?
如下是单测:
What did you see happen?
参照上述单测结果
What did you expect to see?
向嵌套结构体中Scan数据时,内部不存在相同属性时,应该优先赋值外部同名属性,无论嵌套结构体的位置顺序如何
The text was updated successfully, but these errors were encountered: