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,13 +1,13 @@
|
||||
SELECT EVENT_ID FROM performance_schema.EVENTS_WAITS_CURRENT
|
||||
SELECT EVENT_ID FROM performance_schema.events_waits_current
|
||||
WHERE THREAD_ID IN
|
||||
(SELECT THREAD_ID FROM performance_schema.THREADS)
|
||||
(SELECT THREAD_ID FROM performance_schema.threads)
|
||||
AND EVENT_NAME IN
|
||||
(SELECT NAME FROM performance_schema.SETUP_INSTRUMENTS
|
||||
(SELECT NAME FROM performance_schema.setup_instruments
|
||||
WHERE NAME LIKE "wait/synch/%")
|
||||
LIMIT 1;
|
||||
create table test.t1(a int) engine=performance_schema;
|
||||
ERROR HY000: Invalid performance_schema usage.
|
||||
create table test.t1 like performance_schema.EVENTS_WAITS_CURRENT;
|
||||
create table test.t1 like performance_schema.events_waits_current;
|
||||
ERROR HY000: Invalid performance_schema usage.
|
||||
create table performance_schema.t1(a int);
|
||||
ERROR 42000: CREATE command denied to user 'root'@'localhost' for table 't1'
|
||||
@ -22,7 +22,7 @@ a b
|
||||
1 3
|
||||
2 4
|
||||
drop table test.ghost;
|
||||
select * from performance_schema.FILE_INSTANCES
|
||||
select * from performance_schema.file_instances
|
||||
where file_name like "%ghost%";
|
||||
FILE_NAME EVENT_NAME OPEN_COUNT
|
||||
select * from performance_schema.no_such_table;
|
||||
|
Reference in New Issue
Block a user