[MDEV-33110] HANDLER commands are case insensitive with lower-case-table-names=0 Created: 2023-12-22 Updated: 2024-01-19 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Character Sets |
| Affects Version/s: | 10.4, 11.4 |
| Fix Version/s: | 10.4, 11.4 |
| Type: | Bug | Priority: | Major |
| Reporter: | Alexander Barkov | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Description |
|
I execute this SQL script with a Linux MariaDB server running with --lower-case-table-names=0:
The above looks wrong. This command should return the second record from `t1`. The problem is in this code fragment in mysql_ha_find_match() in sql_handler.cc:
It compares table and db names in case insensitive style. Also, it erroneously uses latin1 as a character set. |