Browse Source

Allow update created field if indicated on Cols (#1513)

Allow update created field if indicated on Cols

Reviewed-on: #1513
tags/v0.8.2
Lunny Xiao 1 month ago
parent
commit
43b364ccfd
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      statement.go

+ 1
- 1
statement.go View File

@@ -247,7 +247,7 @@ func (statement *Statement) buildUpdates(bean interface{},
if !includeVersion && col.IsVersion {
continue
}
if col.IsCreated {
if col.IsCreated && !columnMap.contain(col.Name) {
continue
}
if !includeUpdated && col.IsUpdated {


Loading…
Cancel
Save