Query information_schema.tables with table_name is case #40424
Labels
affects-6.1
This bug affects the 6.1.x(LTS) versions.
affects-6.5
This bug affects the 6.5.x(LTS) versions.
severity/moderate
sig/sql-infra
SIG: SQL Infra
type/bug
The issue is confirmed as a bug.
type/compatibility
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
use test;
create table test(id varchar(32));
execute sql : select * from information_schema.tables where table_name = 'test';
It returns one row
execute sql : select * from information_schema.tables where table_name = 'TEST';
It returns empty
2. What did you expect to see? (Required)
Query information_schema.tables with table_name column should case insensitivity just like MySQL.
MySQL result:
3. What did you see instead (Required)
Query information_schema.tables with table_name column should case sensitivity
4. What is your TiDB version? (Required)
select tidb_version();
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| tidb_version() |
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Release Version: v6.1.3
Edition: Community
Git Commit Hash: 6b02a5d
Git Branch: heads/refs/tags/v6.1.3
UTC Build Time: 2022-11-26 07:36:17
GoVersion: go1.19.3
Race Enabled: false
TiKV Min Version: v3.0.0-60965b006877ca7234adaced7890d7b029ed1306
Check Table Before Drop: false |
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
TiDB other version also has this problem
Related issue: #7518
The text was updated successfully, but these errors were encountered: