Fix update

This commit is contained in:
Lunny Xiao 2021-06-09 13:12:30 +08:00
parent b5f157e745
commit bc97be4328
1 changed files with 6 additions and 4 deletions

View File

@ -127,8 +127,9 @@ func (statement *Statement) BuildUpdates(tableValue reflect.Value,
if err != nil {
return nil, nil, err
}
val = data
if data != nil {
val = data
}
goto APPEND
}
}
@ -138,8 +139,9 @@ func (statement *Statement) BuildUpdates(tableValue reflect.Value,
if err != nil {
return nil, nil, err
}
val = data
if data != nil {
val = data
}
goto APPEND
}