Call UpdateBuilder.ExecContext
This commit is contained in:
parent
1f6c2d45c5
commit
6cc373885c
2
save.go
2
save.go
|
@ -89,7 +89,7 @@ func SaveRow(ctx context.Context, db *db.DBC, dataItem meta.IMetaStruct) error {
|
||||||
|
|
||||||
updateBuilder := db.UpdateBySQL(sqlSmt, params...)
|
updateBuilder := db.UpdateBySQL(sqlSmt, params...)
|
||||||
|
|
||||||
res, err := updateBuilder.Exec()
|
res, err := updateBuilder.ExecContext(ctx)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
if len(sqlSmt) > 200 {
|
if len(sqlSmt) > 200 {
|
||||||
sqlSmt = sqlSmt[0:200]
|
sqlSmt = sqlSmt[0:200]
|
||||||
|
|
Loading…
Reference in New Issue