Merge ec1a1d81b0269fa713aba44616f9fb69ed214fbc into 725aa5b5ff4c0687b06d9a01096b8e4cf96b6c9e

This commit is contained in:
Jannis Rieger 2025-08-18 21:41:29 +09:00 committed by GitHub
commit 9376221446
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -77,7 +77,7 @@ func (db *DB) Save(value interface{}) (tx *DB) {
tx.Statement.Dest = value
reflectValue := reflect.Indirect(reflect.ValueOf(value))
for reflectValue.Kind() == reflect.Ptr || reflectValue.Kind() == reflect.Interface {
for reflectValue.Kind() == reflect.Ptr {
reflectValue = reflect.Indirect(reflectValue)
}