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

rename tables causes duplicated row in information_schema.columns #47064

Closed
wjhuang2016 opened this issue Sep 18, 2023 · 2 comments · Fixed by #47087
Closed

rename tables causes duplicated row in information_schema.columns #47064

wjhuang2016 opened this issue Sep 18, 2023 · 2 comments · Fixed by #47087
Assignees
Labels
affects-5.3 This bug affects 5.3.x versions. affects-5.4 This bug affects 5.4.x versions. affects-6.1 affects-6.5 affects-7.1 component/ddl This issue is related to DDL of TiDB. report/customer Customers have encountered this bug. severity/moderate type/bug The issue is confirmed as a bug.

Comments

@wjhuang2016
Copy link
Member

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

create table t1(a int);
create table t2(a int);
create table t3(a int);
create database test1;
rename table test.t1 to test1.t1, test.t2 to test1.t2, test.t3 to test1.t3;
select column_name from information_schema.columns where table_name = 't1';

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

+-------------+
| column_name |
+-------------+
| a           |
+-------------+
1 row in set (0.00 sec)

3. What did you see instead (Required)

+-------------+
| column_name |
+-------------+
| a           |
| a           |
+-------------+

4. What is your TiDB version? (Required)

master

@wjhuang2016 wjhuang2016 added the type/bug The issue is confirmed as a bug. label Sep 18, 2023
@jiyfhust
Copy link
Contributor

/assign

@jebter jebter added the component/ddl This issue is related to DDL of TiDB. label Sep 20, 2023
qiancai added a commit to qiancai/docs-cn that referenced this issue Dec 6, 2023
qiancai added a commit to qiancai/docs that referenced this issue Dec 6, 2023
ti-chi-bot pushed a commit to ti-chi-bot/docs-cn that referenced this issue Dec 7, 2023
ti-chi-bot pushed a commit to ti-chi-bot/docs-cn that referenced this issue Dec 7, 2023
ti-chi-bot pushed a commit to ti-chi-bot/docs-cn that referenced this issue Dec 7, 2023
ti-chi-bot pushed a commit to ti-chi-bot/docs that referenced this issue Dec 7, 2023
ti-chi-bot pushed a commit to ti-chi-bot/docs that referenced this issue Dec 7, 2023
ti-chi-bot pushed a commit to ti-chi-bot/docs that referenced this issue Dec 7, 2023
@zimulala zimulala added the affects-5.3 This bug affects 5.3.x versions. label Dec 19, 2023
@ti-chi-bot ti-chi-bot added affects-5.4 This bug affects 5.4.x versions. affects-6.1 labels Dec 29, 2023
@seiya-annie
Copy link

/found customer

@ti-chi-bot ti-chi-bot bot added the report/customer Customers have encountered this bug. label Jun 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects-5.3 This bug affects 5.3.x versions. affects-5.4 This bug affects 5.4.x versions. affects-6.1 affects-6.5 affects-7.1 component/ddl This issue is related to DDL of TiDB. report/customer Customers have encountered this bug. severity/moderate type/bug The issue is confirmed as a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants