1
--source include/not_embedded.inc
2
--source include/have_perfschema.inc
8
select @@global.performance_schema_events_statements_history_size;
10
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
11
select @@session.performance_schema_events_statements_history_size;
13
show global variables like 'performance_schema_events_statements_history_size';
15
show session variables like 'performance_schema_events_statements_history_size';
17
select * from information_schema.global_variables
18
where variable_name='performance_schema_events_statements_history_size';
20
select * from information_schema.session_variables
21
where variable_name='performance_schema_events_statements_history_size';
27
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
28
set global performance_schema_events_statements_history_size=1;
30
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
31
set session performance_schema_events_statements_history_size=1;