Allow update created field if indicated on Cols
This commit is contained in:
parent
14a0c19a0c
commit
cf31727ab5
|
@ -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