2
0

Fix BeginTxFunc not passing txOptions

fixes #961
This commit is contained in:
Jack Christensen
2021-03-13 07:43:08 -06:00
parent 292539a590
commit 1fcefdc73f
+1 -1
View File
@@ -98,7 +98,7 @@ func (c *Conn) BeginFunc(ctx context.Context, f func(Tx) error) (err error) {
// the execution of f.
func (c *Conn) BeginTxFunc(ctx context.Context, txOptions TxOptions, f func(Tx) error) (err error) {
var tx Tx
tx, err = c.BeginTx(ctx, TxOptions{})
tx, err = c.BeginTx(ctx, txOptions)
if err != nil {
return err
}