go-gorm / playground

GORM Playground (Please Create PR for this project to report issues)
MIT License
89 stars 681 forks source link

Broken backward compatibility with joins and preload #750

Closed teatou closed 2 months ago

teatou commented 2 months ago

GORM Playground Link

https://github.com/go-gorm/playground/pull/749

Description

Starting from v1.25.7, gorm is having trouble unmarshalling data into desired struct when the query returns any insignificant rows after using Preload and Joins. Seems like it is caused by https://github.com/go-gorm/gorm/pull/6771