mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Bug#57609 performance_schema does not work with lower_case_table_names
Before this fix, the performance schema tables were defined in UPPERCASE. This was incompatible with the lowercase_table_names option, and caused issues with the install / upgrade process, when changing the lower case table names setting *after* the install or upgrade. With this fix, all performance schema tables are exposed with lowercase names. As a result, the name of the performance schema table is always lowercase, no matter how / if / when the lowercase_table_names setting if changed.
This commit is contained in:
@ -1,8 +1,8 @@
|
||||
alter table performance_schema.SETUP_CONSUMERS add column foo integer;
|
||||
alter table performance_schema.setup_consumers add column foo integer;
|
||||
ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema'
|
||||
truncate table performance_schema.SETUP_CONSUMERS;
|
||||
truncate table performance_schema.setup_consumers;
|
||||
ERROR HY000: Invalid performance_schema usage.
|
||||
ALTER TABLE performance_schema.SETUP_CONSUMERS ADD INDEX test_index(NAME);
|
||||
ALTER TABLE performance_schema.setup_consumers ADD INDEX test_index(NAME);
|
||||
ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema'
|
||||
CREATE UNIQUE INDEX test_index ON performance_schema.SETUP_CONSUMERS(NAME);
|
||||
CREATE UNIQUE INDEX test_index ON performance_schema.setup_consumers(NAME);
|
||||
ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema'
|
||||
|
Reference in New Issue
Block a user