diff --git a/update.go b/update.go index 75afeed..8617f4e 100644 --- a/update.go +++ b/update.go @@ -186,12 +186,12 @@ func (b *UpdateBuilder) ToSql() (string, []interface{}) { return sql.String(), args } -// Exec executes the statement represented by the UpdateBuilder -// It returns the raw database/sql Result and an error if there was one func (b *UpdateBuilder) Exec() (sql.Result, error) { return b.ExecContext(context.Background()) } +// Exec executes the statement represented by the UpdateBuilder +// It returns the raw database/sql Result and an error if there was one func (b *UpdateBuilder) ExecContext(ctx context.Context) (sql.Result, error) { sql, args := b.ToSql()