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() {
|
if col.SQLType.IsBlob() {
|
||||||
return data, nil
|
return data, nil
|
||||||
}
|
}
|
||||||
|
if nil==data {
|
||||||
|
return nil,nil
|
||||||
|
}
|
||||||
return string(data), nil
|
return string(data), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -330,8 +330,12 @@ func (statement *Statement) buildUpdates(bean interface{},
|
||||||
if err != nil {
|
if err != nil {
|
||||||
engine.logger.Error(err)
|
engine.logger.Error(err)
|
||||||
} else {
|
} else {
|
||||||
|
if nil==data {
|
||||||
|
val=nil
|
||||||
|
}else{
|
||||||
val = data
|
val = data
|
||||||
}
|
}
|
||||||
|
}
|
||||||
goto APPEND
|
goto APPEND
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue