Skip to content

Commit

Permalink
Update pkg/statistics/handle/util/util.go
Browse files Browse the repository at this point in the history
Co-authored-by: Rustin Liu <[email protected]>
  • Loading branch information
qw4990 and Rustin170506 authored Oct 20, 2023
1 parent 945fa99 commit 5c25c1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/statistics/handle/util/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ type SessionPool interface {
// finishTransaction will execute `commit` when error is nil, otherwise `rollback`.
func finishTransaction(sctx sessionctx.Context, err error) error {
if err == nil {
_, _, err = ExecRows(sctx, "commit")
_, _, err = ExecRows(sctx, "COMMIT")
} else {
_, _, err1 := ExecRows(sctx, "rollback")
terror.Log(errors.Trace(err1))
Expand Down

0 comments on commit 5c25c1f

Please sign in to comment.