Forward context inside QueryContext method.
This commit is contained in:
parent
86fdabd9cc
commit
1c2a595750
1 changed files with 1 additions and 1 deletions
|
|
@ -57,7 +57,7 @@ func (t *Tx) QueryContext(ctx context.Context, query string, args ...interface{}
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
return prepStmt.Query(args...)
|
return prepStmt.QueryContext(ctx, args...)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Prepare delegates call to PrepareContext using context.Background as a parameter.
|
// Prepare delegates call to PrepareContext using context.Background as a parameter.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue