-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
*: add a variable to control whether we can write _tidb_rowid #8218
Conversation
/run-all-tests tidb-test=release-2.1 tidb-private-test=release-2.1 tikv=release-2.1 |
Please fix ci |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
/run-all-tests |
/run-all-tests tidb-test=release-2.1 tidb-private-test=release-2.1 tikv=release-2.1 |
What problem does this PR solve?
create table tt(id binary(10), c int, primary key(id));
insert tt values (1, 10);
insert into tt (id, c, _tidb_rowid) values(30000,10,1);
tidb> select * from tt use index(
primary
);+------------+------+
| id | c |
+------------+------+
| 30000 | 10 |
| 30000 | 10 |
+------------+------+
2 rows in set (0.00 sec)
tidb> select * from tt;
+------------+------+
| id | c |
+------------+------+
| 30000 | 10 |
+------------+------+
1 row in set (0.00 sec)
What is changed and how it works?
cherry-pick #8126