This commit is contained in:
Jannis Rieger 2024-11-21 17:08:02 +08:00 committed by GitHub
commit 875c67f574
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,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)
}