Fix scope SetColumn
This commit is contained in:
parent
7180bd0f27
commit
88cf8cec54
2
scope.go
2
scope.go
@ -221,7 +221,7 @@ func (scope *Scope) SetColumn(column interface{}, value interface{}) error {
|
|||||||
mostMatchedField *Field
|
mostMatchedField *Field
|
||||||
)
|
)
|
||||||
for _, field := range scope.Fields() {
|
for _, field := range scope.Fields() {
|
||||||
if field.DBName == value {
|
if field.DBName == dbName {
|
||||||
updateAttrs[field.DBName] = value
|
updateAttrs[field.DBName] = value
|
||||||
return field.Set(value)
|
return field.Set(value)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user