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

txn: the tidb_low_resolution variable is used on select for update statement #54684

Closed
cfzjywxk opened this issue Jul 17, 2024 · 0 comments · Fixed by #54738
Closed

txn: the tidb_low_resolution variable is used on select for update statement #54684

cfzjywxk opened this issue Jul 17, 2024 · 0 comments · Fixed by #54738

Comments

@cfzjywxk
Copy link
Contributor

cfzjywxk commented Jul 17, 2024

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

create table t(a int key);
set tidb_low_resolution_tso = 'ON';
begin;
select * from t where a = 1 for update; // or select * from t for update

2. What did you expect to see? (Required)

The select for update should report an error that when tidb_low_resolution_tso is set, the statement could not be executed.

3. What did you see instead (Required)

The select for update statement executes successfully.

4. What is your TiDB version? (Required)

Nightly with ca7ba14da87abd060922b32c893b121c4c3d6373 commit hash

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment