pingcap / pingcap/tidb

The conditional query of the information_schema meta data table is case-sensitive

Open
#52,804 0 comments 0 reactions 1 assignee Claimed by @hawkingrei View on GitHub
component/statistics may-affects-5.4 may-affects-6.1 may-affects-6.5 may-affects-7.1 may-affects-7.5 may-affects-8.1 severity/minor sig/planner type/bug
Dominant language
Go
Stars
40.5k
Forks
6.2k
PR merge metrics
PR metrics pending

Description

## Bug Report

Please answer these questions before submitting your issue. Thanks!

### 1. Minimal reproduce step (Required)
use test;
create table test (a int primary key);
insert into test values(1);
analyze table test;
select table_name from information_schema.statistics where table_schema='test' and COLUMN_NAME='A';

### 2. What did you expect to see? (Required)
+------------+
| table_name |
+------------+
| test |
+------------+
1 row in set (0.00 sec)

### 3. What did you see instead (Required)

Empty set (0.00 sec)

### 4. What is your TiDB version? (Required)

+-------------------------------------+
| version() |
+-------------------------------------+
| 5.7.25-TiDB-v6.5.5-20240316-8ea3cb6 |
+-------------------------------------+

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.