mirror of https://github.com/go-gorm/gorm.git
Merge ec1a1d81b0
into 6bfccf8afa
This commit is contained in:
commit
875c67f574
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue