[MDEV-33086] SHOW OPEN TABLES IN DB1 -- is case insensitive with lower-case-table-names=0 Created: 2023-12-20  Updated: 2024-01-19

Status: Open
Project: MariaDB Server
Component/s: Information Schema
Affects Version/s: 10.4, 11.4
Fix Version/s: 10.4, 11.4

Type: Bug Priority: Major
Reporter: Alexander Barkov Assignee: Alexander Barkov
Resolution: Unresolved Votes: 0
Labels: None

Issue Links:
Relates
relates to MDEV-31340 Remove MY_COLLATION_HANDLER::strcasec... In Review

 Description   

I run the following SQL script with a Linux server with --lower-case-table-names=0:

CREATE DATABASE db1;
CREATE TABLE db1.t1 (a INT);
SELECT * FROM db1.t1;
SHOW OPEN TABLES IN DB1;

+----------+-------+--------+-------------+
| Database | Table | In_use | Name_locked |
+----------+-------+--------+-------------+
| db1      | t1    |      0 |           0 |
+----------+-------+--------+-------------+

Looks wrong. The expected result is empty set, as the database does not match.


Generated at Thu Feb 08 10:36:16 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.