Skip to content

Commit aa51629

Browse files
committed
fixed execution on fake tx
1 parent 4f2ed1a commit aa51629

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/table/conn/conn.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -473,6 +473,8 @@ func (c *Conn) beginTx(ctx context.Context, txOptions driver.TxOptions) (tx curr
473473
return nil, xerrors.WithStackTrace(err)
474474
}
475475

476+
c.currentTx = tx
477+
476478
return tx, nil
477479
}
478480

@@ -482,7 +484,5 @@ func (c *Conn) BeginTx(ctx context.Context, txOptions driver.TxOptions) (driver.
482484
return nil, xerrors.WithStackTrace(err)
483485
}
484486

485-
c.currentTx = tx
486-
487487
return tx, nil
488488
}

0 commit comments

Comments
 (0)