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
If two tables have the same column names like id and name, once we perform the JOIN query with a junction table in between, we see that the library does not populate the right value into the right struct. This happens due to how value is scanned back to the struct.
The text was updated successfully, but these errors were encountered:
This issue was fixed by #5143 but however, @jinzhu modified my commit to be more concise which resulted in a bug. That's why opening this issue again and going to send PR to fix the bug as well.
I also added a new playground PR go-gorm/playground#460 which has more robust test cases so that test will fail in case this bug regresses again
GORM Playground Link
go-gorm/playground#460
Description
If two tables have the same column names like
id
andname
, once we perform the JOIN query with a junction table in between, we see that the library does not populate the right value into the right struct. This happens due to how value is scanned back to the struct.The text was updated successfully, but these errors were encountered: