Skip to content

Commit 7324b98

Browse files
committed
.
1 parent 5c20c71 commit 7324b98

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

transaction.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ func (tx *mysqlTx) Commit() (err error) {
1717
return errInvalidConn
1818
}
1919
err = tx.mc.exec("COMMIT")
20-
tx.startTx = false
20+
tx.mc.startTx = false
2121
tx.mc = nil
2222
return
2323
}
@@ -27,7 +27,7 @@ func (tx *mysqlTx) Rollback() (err error) {
2727
return errInvalidConn
2828
}
2929
err = tx.mc.exec("ROLLBACK")
30-
tx.startTx = false
30+
tx.mc.startTx = false
3131
tx.mc = nil
3232
return
3333
}

0 commit comments

Comments
 (0)