diff --git a/scope.go b/scope.go index c42c6afb..f1733aa3 100644 --- a/scope.go +++ b/scope.go @@ -164,7 +164,7 @@ func (scope *Scope) SetColumn(column interface{}, value interface{}) error { return field.Set(value) } - dbName = ToDBName(name) + dbName := ToDBName(name) if field, ok := scope.Fields()[dbName]; ok { return field.Set(value) }