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

*: add a variable to control whether we can write _tidb_rowid #8218

Merged
merged 3 commits into from
Nov 8, 2018

Conversation

zimulala
Copy link
Contributor

@zimulala zimulala commented Nov 7, 2018

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

@zimulala zimulala added type/bugfix This PR fixes a bug. sig/execution SIG execution type/2.1 cherry-pick labels Nov 7, 2018
@zimulala
Copy link
Contributor Author

zimulala commented Nov 7, 2018

/run-all-tests tidb-test=release-2.1 tidb-private-test=release-2.1 tikv=release-2.1

@winkyao
Copy link
Contributor

winkyao commented Nov 7, 2018

Please fix ci

Copy link
Member

@jackysp jackysp left a comment

Choose a reason for hiding this comment

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

LGTM

@zimulala zimulala added the status/LGT1 Indicates that a PR has LGTM 1. label Nov 7, 2018
zz-jason
zz-jason previously approved these changes Nov 8, 2018
Copy link
Member

@zz-jason zz-jason left a comment

Choose a reason for hiding this comment

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

LGTM

@zz-jason zz-jason added status/LGT2 Indicates that a PR has LGTM 2. and removed status/LGT1 Indicates that a PR has LGTM 1. labels Nov 8, 2018
@zimulala
Copy link
Contributor Author

zimulala commented Nov 8, 2018

/run-all-tests

@zimulala
Copy link
Contributor Author

zimulala commented Nov 8, 2018

/run-all-tests tidb-test=release-2.1 tidb-private-test=release-2.1 tikv=release-2.1

@zimulala zimulala merged commit 6f07907 into pingcap:release-2.1 Nov 8, 2018
@zimulala zimulala deleted the cp-8187 branch November 8, 2018 07:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sig/execution SIG execution status/LGT2 Indicates that a PR has LGTM 2. type/bugfix This PR fixes a bug.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants