Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

system-variable: add document for tx_isolation_one_shot #10566

Merged
merged 4 commits into from
Oct 11, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 6 additions & 0 deletions system-variables.md
Expand Up @@ -2319,6 +2319,12 @@ Query OK, 0 rows affected, 1 warning (0.00 sec)

This variable is an alias for `transaction_isolation`.

### tx_isolation_one_shot

This variable is an internal system variable, not meant to be used directly.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you provide the scope, the default value, or type, and the description?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

People should not use this variable directly, so why bother for more details?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(For some historial reasons) It's a special one, not like the other variables...

tiancaiamao marked this conversation as resolved.
Show resolved Hide resolved

TomShawn marked this conversation as resolved.
Show resolved Hide resolved
`SET TRANSACTION ISOLATION LEVEL [READ COMMITTED| REPEATABLE READ | ...]` is transformed to `SET @@SESSION.TX_ISOLATION_ONE_SHOT = [READ COMMITTED| REPEATABLE READ | ...]` by the TiDB parser internally.
tiancaiamao marked this conversation as resolved.
Show resolved Hide resolved

### version

- Scope: NONE
Expand Down