go-gorm / gorm

The fantastic ORM library for Golang, aims to be developer friendly
https://gorm.io
MIT License
37.02k stars 3.94k forks source link

fix: update incorrect default name when parse dest model field. #7263

Closed zyb-992 closed 2 weeks ago

zyb-992 commented 2 weeks ago

What did this pull request do?

it correctly update Field.HasDefaultValue field value when using Schema.ParseField method to init the field.

User Case Description

zyb-992 commented 2 weeks ago

oh! it's my fault, this method will rewrite thie field value after this operation, i did not read this until now...