mirror of https://github.com/go-gorm/gorm.git
Merge ec1a1d81b0
into 49bbaa637f
This commit is contained in:
commit
5afc46e8d0
|
@ -76,7 +76,7 @@ func (db *DB) Save(value interface{}) (tx *DB) {
|
||||||
tx.Statement.Dest = value
|
tx.Statement.Dest = value
|
||||||
|
|
||||||
reflectValue := reflect.Indirect(reflect.ValueOf(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)
|
reflectValue = reflect.Indirect(reflectValue)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue