Skip to content

Commit 43b364c

Browse files
committed
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
1 parent 6dfe337 commit 43b364c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

statement.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ func (statement *Statement) buildUpdates(bean interface{},
247247
if !includeVersion && col.IsVersion {
248248
continue
249249
}
250-
if col.IsCreated {
250+
if col.IsCreated && !columnMap.contain(col.Name) {
251251
continue
252252
}
253253
if !includeUpdated && col.IsUpdated {

0 commit comments

Comments
 (0)