fix bug
This commit is contained in:
parent
04f8798a85
commit
c042bb8755
@ -240,8 +240,9 @@ func ConvertToAssignments(stmt *gorm.Statement) (set clause.Set) {
|
|||||||
}
|
}
|
||||||
isZero = false
|
isZero = false
|
||||||
} else if isZero {
|
} else if isZero {
|
||||||
_, isZero = field.TagSettings["ALWAYSUPDATE"]
|
if _, exist := field.TagSettings["ALWAYSUPDATE"]; exist {
|
||||||
isZero = !isZero
|
isZero = false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ok || !isZero {
|
if ok || !isZero {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user