Merge 9e0cd1a08a
into 33fc33b2f5
This commit is contained in:
commit
df5b4d818d
|
@ -558,6 +558,9 @@ func (session *Session) value2Interface(col *core.Column, fieldValue reflect.Val
|
|||
if col.SQLType.IsBlob() {
|
||||
return data, nil
|
||||
}
|
||||
if nil==data {
|
||||
return nil,nil
|
||||
}
|
||||
return string(data), nil
|
||||
}
|
||||
|
||||
|
|
|
@ -329,9 +329,13 @@ func (statement *Statement) buildUpdates(bean interface{},
|
|||
data, err := structConvert.ToDB()
|
||||
if err != nil {
|
||||
engine.logger.Error(err)
|
||||
} else {
|
||||
if nil==data {
|
||||
val=nil
|
||||
}else{
|
||||
val = data
|
||||
}
|
||||
}
|
||||
goto APPEND
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue