Allow update created field if indicated on Cols (#1513)
Allow update created field if indicated on Cols Reviewed-on: https://gitea.com/xorm/xorm/pulls/1513
This commit is contained in:
parent
6dfe337869
commit
43b364ccfd
|
@ -247,7 +247,7 @@ func (statement *Statement) buildUpdates(bean interface{},
|
||||||
if !includeVersion && col.IsVersion {
|
if !includeVersion && col.IsVersion {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
if col.IsCreated {
|
if col.IsCreated && !columnMap.contain(col.Name) {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
if !includeUpdated && col.IsUpdated {
|
if !includeUpdated && col.IsUpdated {
|
||||||
|
|
Loading…
Reference in New Issue