Fix BUG: Update statement build function should ingore ONLYFROMDB fields
This commit is contained in:
parent
a8bd843a55
commit
4f3f7a6fa9
|
@ -261,6 +261,10 @@ func (statement *Statement) buildUpdates(bean interface{},
|
|||
continue
|
||||
}
|
||||
|
||||
if col.MapType == core.ONLYFROMDB {
|
||||
continue
|
||||
}
|
||||
|
||||
fieldValuePtr, err := col.ValueOf(bean)
|
||||
if err != nil {
|
||||
engine.logger.Error(err)
|
||||
|
|
Loading…
Reference in New Issue