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

index name is not saved correctly. #66

Closed
siddontang opened this issue Sep 8, 2015 · 0 comments
Closed

index name is not saved correctly. #66

siddontang opened this issue Sep 8, 2015 · 0 comments
Assignees
Labels
type/bug The issue is confirmed as a bug.

Comments

@siddontang
Copy link
Member

create table t (c1 int, c2 int, index(c1), index(c2);
insert into values (1, 2), (3,4);
select * from t where c1 > 0;

it will output:

+----+----+
| c1 | c2 |
+----+----+
| 1  | 2  |
| 1  | 2  |
| 3  | 4  |
| 3  | 4  |
+----+----+

This is not correct. And we find that both c1 and c2 index use the same empty index name.

@siddontang siddontang added the type/bug The issue is confirmed as a bug. label Sep 8, 2015
coocood added a commit that referenced this issue Sep 8, 2015
Fixes #66 and also check duplication.
Defined2014 pushed a commit to Defined2014/tidb that referenced this issue Apr 13, 2022
iosmanthus added a commit to iosmanthus/tidb that referenced this issue Oct 31, 2022
* update client-go to iosmanthus's version

Signed-off-by: iosmanthus <[email protected]>

* Add keyspace prefix in tiflash placement rules (pingcap#66)

Co-authored-by: iosmanthus <[email protected]>

* trigger cd while create pull request on keyspace-on-release-6.2-dev-tier

Signed-off-by: iosmanthus <[email protected]>

* fix cycle import

Signed-off-by: iosmanthus <[email protected]>

* refactor placement rule encode logic

Signed-off-by: iosmanthus <[email protected]>

* add keyspace-id label for tiflash replica

Signed-off-by: iosmanthus <[email protected]>

* goimports -w ./

Signed-off-by: iosmanthus <[email protected]>

Signed-off-by: iosmanthus <[email protected]>
Co-authored-by: yongman <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug The issue is confirmed as a bug.
Projects
None yet
Development

No branches or pull requests

2 participants