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

show full columns like should be case insensitive #29910

Closed
djshow832 opened this issue Nov 18, 2021 · 4 comments · Fixed by #31742
Closed

show full columns like should be case insensitive #29910

djshow832 opened this issue Nov 18, 2021 · 4 comments · Fixed by #31742
Assignees
Labels
severity/moderate sig/sql-infra SIG: SQL Infra type/bug The issue is confirmed as a bug.

Comments

@djshow832
Copy link
Contributor

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

mysql> create table t(id int);
Query OK, 0 rows affected (0.01 sec)

mysql> show full columns from t like 'id';
+-------+---------+-----------+------+------+---------+-------+---------------------------------+---------+
| Field | Type    | Collation | Null | Key  | Default | Extra | Privileges                      | Comment |
+-------+---------+-----------+------+------+---------+-------+---------------------------------+---------+
| id    | int(11) | NULL      | YES  |      | NULL    |       | select,insert,update,references |         |
+-------+---------+-----------+------+------+---------+-------+---------------------------------+---------+
1 row in set (0.00 sec)

mysql> show full columns from t like 'ID';
Empty set (0.00 sec)

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

In MySQL 8.0:

mysql> show full columns from t like 'ID';
+-------+------+-----------+------+-----+---------+-------+---------------------------------+---------+
| Field | Type | Collation | Null | Key | Default | Extra | Privileges                      | Comment |
+-------+------+-----------+------+-----+---------+-------+---------------------------------+---------+
| id    | int  | NULL      | YES  |     | NULL    |       | select,insert,update,references |         |
+-------+------+-----------+------+-----+---------+-------+---------------------------------+---------+
1 row in set (0.05 sec)

3. What did you see instead (Required)

mysql> show full columns from t like 'ID';
Empty set (0.00 sec)

This leads to incompatibility with some ecosystem tools.

4. What is your TiDB version? (Required)

master

@djshow832 djshow832 added type/bug The issue is confirmed as a bug. severity/moderate sig/sql-infra SIG: SQL Infra labels Nov 18, 2021
@xiongjiwei
Copy link
Contributor

similar with #26253

@Defined2014
Copy link
Contributor

similar with #26253

Maybe we can close one of them.

@hawkingrei
Copy link
Member

/assign

@github-actions
Copy link

Please check whether the issue should be labeled with 'affects-x.y' or 'fixes-x.y.z', and then remove 'needs-more-info' label.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
severity/moderate sig/sql-infra SIG: SQL Infra type/bug The issue is confirmed as a bug.
Projects
None yet
4 participants