Skip to content

Commit e098c61

Browse files
committed
fix xsql
1 parent 665cf80 commit e098c61

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

internal/xsql/tx.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,9 @@ func (tx *tx) Rollback() (err error) {
5757
if tx.conn.isClosed() {
5858
return errClosedConn
5959
}
60-
if tx.conn.currentTx == nil {
61-
return nil
62-
}
6360
err = tx.tx.Rollback(tx.ctx)
6461
if err != nil {
65-
return tx.conn.checkClosed(err)
62+
return tx.conn.checkClosed(xerrors.WithStackTrace(err))
6663
}
6764
return err
6865
}

0 commit comments

Comments
 (0)