Merge ec1a1d81b0269fa713aba44616f9fb69ed214fbc into 725aa5b5ff4c0687b06d9a01096b8e4cf96b6c9e
This commit is contained in:
commit
9376221446
@ -77,7 +77,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…
x
Reference in New Issue
Block a user