Commit fa49c397 authored by Daniel Theophanes's avatar Daniel Theophanes Committed by Brad Fitzpatrick

database/sql: fixup remaining driver call to use context

Missed one in the prior CL.

Change-Id: I6f6d84d52fe4d902a985971a402701fb3b1eed86
Reviewed-on: https://go-review.googlesource.com/30255Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
parent ddb77100
......@@ -1499,7 +1499,7 @@ func (tx *Tx) ExecContext(ctx context.Context, query string, args ...interface{}
}
var resi driver.Result
withLock(dc, func() {
resi, err = execer.Exec(query, dargs)
resi, err = ctxDriverExec(ctx, execer, query, dargs)
})
if err == nil {
return driverResult{dc, resi}, nil
......@@ -1511,7 +1511,7 @@ func (tx *Tx) ExecContext(ctx context.Context, query string, args ...interface{}
var si driver.Stmt
withLock(dc, func() {
si, err = dc.ci.Prepare(query)
si, err = ctxDriverPrepare(ctx, dc.ci, query)
})
if err != nil {
return nil, err
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment