Call UpdateBuilder.ExecContext

This commit is contained in:
Владислав Весельский 2022-11-25 14:31:16 +03:00
parent 1f6c2d45c5
commit 6cc373885c
1 changed files with 1 additions and 1 deletions

View File

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