From f799533201b40fb3efaf09c6d9b21ef20d6a5af9 Mon Sep 17 00:00:00 2001 From: Vladislav Veselskiy Date: Thu, 24 Nov 2022 15:21:14 +0300 Subject: [PATCH] Move comment from UpdateBuilder.Exec to UpdateBuilder.ExecContext --- update.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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()