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,27 +1,27 @@
|
||||
select * from performance_schema.THREADS
|
||||
select * from performance_schema.threads
|
||||
where name like 'Thread/%' limit 1;
|
||||
THREAD_ID PROCESSLIST_ID NAME
|
||||
# # #
|
||||
select * from performance_schema.THREADS
|
||||
select * from performance_schema.threads
|
||||
where name='FOO';
|
||||
THREAD_ID PROCESSLIST_ID NAME
|
||||
insert into performance_schema.THREADS
|
||||
insert into performance_schema.threads
|
||||
set name='FOO', thread_id=1, processlist_id=2;
|
||||
ERROR 42000: INSERT command denied to user 'root'@'localhost' for table 'THREADS'
|
||||
update performance_schema.THREADS
|
||||
ERROR 42000: INSERT command denied to user 'root'@'localhost' for table 'threads'
|
||||
update performance_schema.threads
|
||||
set thread_id=12;
|
||||
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'THREADS'
|
||||
update performance_schema.THREADS
|
||||
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'threads'
|
||||
update performance_schema.threads
|
||||
set thread_id=12 where name like "FOO";
|
||||
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'THREADS'
|
||||
delete from performance_schema.THREADS
|
||||
ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'threads'
|
||||
delete from performance_schema.threads
|
||||
where id=1;
|
||||
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'THREADS'
|
||||
delete from performance_schema.THREADS;
|
||||
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'THREADS'
|
||||
LOCK TABLES performance_schema.THREADS READ;
|
||||
ERROR 42000: SELECT,LOCK TABL command denied to user 'root'@'localhost' for table 'THREADS'
|
||||
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'threads'
|
||||
delete from performance_schema.threads;
|
||||
ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'threads'
|
||||
LOCK TABLES performance_schema.threads READ;
|
||||
ERROR 42000: SELECT,LOCK TABL command denied to user 'root'@'localhost' for table 'threads'
|
||||
UNLOCK TABLES;
|
||||
LOCK TABLES performance_schema.THREADS WRITE;
|
||||
ERROR 42000: SELECT,LOCK TABL command denied to user 'root'@'localhost' for table 'THREADS'
|
||||
LOCK TABLES performance_schema.threads WRITE;
|
||||
ERROR 42000: SELECT,LOCK TABL command denied to user 'root'@'localhost' for table 'threads'
|
||||
UNLOCK TABLES;
|
||||
|
Reference in New Issue
Block a user