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

Cannot drop column after dropping covered index #93

Open
Tracked by #1 ...
tangenta opened this issue May 12, 2022 · 0 comments
Open
Tracked by #1 ...

Cannot drop column after dropping covered index #93

tangenta opened this issue May 12, 2022 · 0 comments
Assignees

Comments

@tangenta
Copy link
Owner

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

drop table if exists t;
create table t (a int ,b int, key idx (a, b));
alter table t drop index idx, drop column b;

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

Query OK, 0 rows affected (0.04 sec)
Records: 0  Duplicates: 0  Warnings: 0

3. What did you see instead (Required)

ERROR 8200 (HY000): can't drop column b with composite index covered or Primary Key covered now

4. What is your TiDB version? (Required)

405d2c0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant