mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
P_S 5.7.28
This commit is contained in:
@ -5,6 +5,9 @@
|
||||
|
||||
--source ../include/start_server_common.inc
|
||||
|
||||
select * from information_schema.engines
|
||||
where engine = "PERFORMANCE_SCHEMA";
|
||||
|
||||
# Expecting all off / zero
|
||||
show status like "performance_schema%";
|
||||
show variables like "performance_schema";
|
||||
@ -27,7 +30,7 @@ select * from performance_schema.setup_timers;
|
||||
insert into performance_schema.setup_objects values ('TABLE', 'myschema', 'myobject', 'YES', 'YES');
|
||||
|
||||
--error ER_WRONG_PERFSCHEMA_USAGE
|
||||
insert into performance_schema.setup_actors values ('myhost', 'mysuser', 'myrole');
|
||||
insert into performance_schema.setup_actors values ('myhost', 'mysuser', 'myrole', 'YES', 'YES');
|
||||
|
||||
# Expect SELECT, UPDATE, DELETE and TRUNCATE to affect 0 rows, but with
|
||||
# no error because the target row(s) will not be found
|
||||
@ -45,3 +48,22 @@ truncate performance_schema.events_statements_history_long;
|
||||
truncate performance_schema.events_waits_history_long;
|
||||
truncate performance_schema.setup_objects;
|
||||
truncate performance_schema.setup_actors;
|
||||
|
||||
#
|
||||
# Verify SHOW STATUS and SHOW VARIABLES with show_compatibility_56=OFF
|
||||
#
|
||||
select @@global.show_compatibility_56 into @show_compatibility_56_save;
|
||||
set global show_compatibility_56 = OFF;
|
||||
|
||||
--disable_warnings
|
||||
# Expect that status variables are still accessible
|
||||
show global status like "performance_schema%";
|
||||
show session status like "performance_schema%";
|
||||
|
||||
# Expect that system variables are still accessible
|
||||
show global variables like "show_compatibility_56";
|
||||
show session variables like "show_compatibility_56";
|
||||
--enable_warnings
|
||||
|
||||
# Cleanup
|
||||
set @@global.show_compatibility_56 = @show_compatibility_56_save;
|
||||
|
Reference in New Issue
Block a user