Fix for MSSQL
This commit is contained in:
parent
4a301464df
commit
9877fecc20
2
scope.go
2
scope.go
@ -919,7 +919,7 @@ func (scope *Scope) updatedAttrsWithValues(value interface{}) (results map[strin
|
||||
results[field.DBName] = value
|
||||
} else {
|
||||
err := field.Set(value)
|
||||
if field.IsNormal && !field.IsIgnored {
|
||||
if field.IsNormal && !field.IsIgnored && !field.IsPrimaryKey {
|
||||
hasUpdate = true
|
||||
if err == ErrUnaddressable {
|
||||
results[field.DBName] = value
|
||||
|
Loading…
x
Reference in New Issue
Block a user