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
Starting with gorm v1.25.1 (v1.25.0 was not affected), if I use ScanRows on a struct that is not initialized to its default value for all fields GORM will not overwrite those fields that are NULL on SQL side.
GORM Playground Link
go-gorm/playground#686
Description
Starting with gorm v1.25.1 (v1.25.0 was not affected), if I use ScanRows on a struct that is not initialized to its default value for all fields GORM will not overwrite those fields that are NULL on SQL side.
An example codpiece can be found at go-gorm/playground#686, but generally speaking we have encountered it when using a non-builtin type too (https://github.com/shopspring/decimal).
The text was updated successfully, but these errors were encountered: