pingcap / pingcap/docs-cn

对于 DDL 语句,会自动提交并且不能回滚。如果运行 DDL 的时候,正在一个事务的中间过程中,会先自动提交当前事务,再执行 DDL。

Open
#7,399 2 comments 0 reactions 1 assignee View on GitHub

@qiancai is already working on this.

Since Aug 31, 2023.

area/transaction type/question
Dominant language
Python
Stars
1.8k
Forks
1.2k
Avg merge
1d 16h
Merged PRs (30d)
31

Description

File: /transaction-overview.md

对于 DDL 语句,会自动提交并且不能回滚。如果运行 DDL 的时候,正在一个事务的中间过程中,会先自动提交当前事务,再执行 DDL。

针对这个描述,我感到困惑,我这边测试的时候,对同一张表的ddl语句执行后直接回滚了正在执行的事务,而不是提交正在执行的事务

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.