diff --git a/tx.go b/tx.go index 5ba9836a..cb043e06 100644 --- a/tx.go +++ b/tx.go @@ -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 }