mirror of https://github.com/go-gorm/gorm.git
Compare commits
2 Commits
875c67f574
...
5afc46e8d0
Author | SHA1 | Date |
---|---|---|
Jannis Rieger | 5afc46e8d0 | |
Jannis Rieger | ec1a1d81b0 |
|
@ -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