diff --git a/stmtcache/tx.go b/stmtcache/tx.go index c02fb6b..0076f46 100644 --- a/stmtcache/tx.go +++ b/stmtcache/tx.go @@ -57,7 +57,7 @@ func (t *Tx) QueryContext(ctx context.Context, query string, args ...interface{} return nil, err } - return prepStmt.Query(args...) + return prepStmt.QueryContext(ctx, args...) } // Prepare delegates call to PrepareContext using context.Background as a parameter.