1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +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:
Marc Alff
2010-11-03 16:42:33 +01:00
parent 02ca1fe3f1
commit 4e1678daca
147 changed files with 2132 additions and 2279 deletions

View File

@@ -19,37 +19,31 @@
--source include/have_perfschema.inc
--replace_column 1 # 2 # 3 #
select * from performance_schema.MUTEX_INSTANCES limit 1;
select * from performance_schema.mutex_instances limit 1;
select * from performance_schema.MUTEX_INSTANCES
select * from performance_schema.mutex_instances
where name='FOO';
--replace_result '\'mutex_instances' '\'MUTEX_INSTANCES'
--error ER_TABLEACCESS_DENIED_ERROR
insert into performance_schema.MUTEX_INSTANCES
insert into performance_schema.mutex_instances
set name='FOO', object_instance_begin=12;
--replace_result '\'mutex_instances' '\'MUTEX_INSTANCES'
--error ER_TABLEACCESS_DENIED_ERROR
update performance_schema.MUTEX_INSTANCES
update performance_schema.mutex_instances
set name='FOO';
--replace_result '\'mutex_instances' '\'MUTEX_INSTANCES'
--error ER_TABLEACCESS_DENIED_ERROR
delete from performance_schema.MUTEX_INSTANCES
delete from performance_schema.mutex_instances
where name like "wait/%";
--replace_result '\'mutex_instances' '\'MUTEX_INSTANCES'
--error ER_TABLEACCESS_DENIED_ERROR
delete from performance_schema.MUTEX_INSTANCES;
delete from performance_schema.mutex_instances;
--replace_result '\'mutex_instances' '\'MUTEX_INSTANCES'
-- error ER_TABLEACCESS_DENIED_ERROR
LOCK TABLES performance_schema.MUTEX_INSTANCES READ;
LOCK TABLES performance_schema.mutex_instances READ;
UNLOCK TABLES;
--replace_result '\'mutex_instances' '\'MUTEX_INSTANCES'
-- error ER_TABLEACCESS_DENIED_ERROR
LOCK TABLES performance_schema.MUTEX_INSTANCES WRITE;
LOCK TABLES performance_schema.mutex_instances WRITE;
UNLOCK TABLES;