Fix BUG: Update statement build function should ingore ONLYFROMDB fields

This commit is contained in:
DrWrong 2018-06-19 19:14:35 +08:00
parent a8bd843a55
commit 4f3f7a6fa9
1 changed files with 4 additions and 0 deletions

View File

@ -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)