1
--source include/not_embedded.inc
3
SET @start_global_value = @@global.slave_checkpoint_period;
4
SELECT @start_global_value;
7
# exists as global only
9
select @@global.slave_checkpoint_period;
10
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
11
select @@session.slave_checkpoint_period;
12
--replace_regex /[0-9]+/period/
13
show global variables like 'slave_checkpoint_period';
14
--replace_regex /[0-9]+/period/
15
show session variables like 'slave_checkpoint_period';
16
--replace_regex /[0-9]+/period/
17
select * from information_schema.global_variables where variable_name='slave_checkpoint_period';
18
--replace_regex /[0-9]+/period/
19
select * from information_schema.session_variables where variable_name='slave_checkpoint_period';
22
# show that it's writable
24
set global slave_checkpoint_period=1;
25
select @@global.slave_checkpoint_period;
26
--error ER_GLOBAL_VARIABLE
27
set session slave_checkpoint_period=1;
32
--error ER_WRONG_TYPE_FOR_VAR
33
set global slave_checkpoint_period=1.1;
34
--error ER_WRONG_TYPE_FOR_VAR
35
set global slave_checkpoint_period=1e1;
36
--error ER_WRONG_TYPE_FOR_VAR
37
set global slave_checkpoint_period="foo";
42
set global slave_checkpoint_period=1;
43
select @@global.slave_checkpoint_period;
44
set global slave_checkpoint_period=cast(-1 as unsigned int);
45
select @@global.slave_checkpoint_period as "truncated to the maximum";
47
SET @@global.slave_checkpoint_period = @start_global_value;
48
SELECT @@global.slave_checkpoint_period;