Only have a single Begin transaction method
This commit is contained in:
+1
-1
@@ -210,7 +210,7 @@ func (c *Conn) BeginTx(ctx context.Context, opts driver.TxOptions) (driver.Tx, e
|
||||
pgxOpts.AccessMode = pgx.ReadOnly
|
||||
}
|
||||
|
||||
tx, err := c.conn.BeginEx(ctx, &pgxOpts)
|
||||
tx, err := c.conn.Begin(ctx, &pgxOpts)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user