summaryrefslogtreecommitdiff
path: root/mysql-test/suite/sys_vars/t/pfs_events_stages_history_size_basic.test
blob: 2b85c97a96f3f3d9aae6320920402ee87209ed8f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
--source include/not_embedded.inc
--source include/have_perfschema.inc

#
# Only global
#

select @@global.performance_schema_events_stages_history_size;

--error ER_INCORRECT_GLOBAL_LOCAL_VAR
select @@session.performance_schema_events_stages_history_size;

show global variables like 'performance_schema_events_stages_history_size';

show session variables like 'performance_schema_events_stages_history_size';

select * from information_schema.global_variables
  where variable_name='performance_schema_events_stages_history_size';

select * from information_schema.session_variables
  where variable_name='performance_schema_events_stages_history_size';

#
# Read-only
#

--error ER_INCORRECT_GLOBAL_LOCAL_VAR
set global performance_schema_events_stages_history_size=1;

--error ER_INCORRECT_GLOBAL_LOCAL_VAR
set session performance_schema_events_stages_history_size=1;