SET @start_global_value = @@global.aria_checkpoint_interval;
select @@global.aria_checkpoint_interval;
@@global.aria_checkpoint_interval
30
select @@session.aria_checkpoint_interval;
ERROR HY000: Variable 'aria_checkpoint_interval' is a GLOBAL variable
show global variables like 'aria_checkpoint_interval';
Variable_name	Value
aria_checkpoint_interval	30
show session variables like 'aria_checkpoint_interval';
Variable_name	Value
aria_checkpoint_interval	30
select * from information_schema.global_variables where variable_name='aria_checkpoint_interval';
VARIABLE_NAME	VARIABLE_VALUE
ARIA_CHECKPOINT_INTERVAL	30
select * from information_schema.session_variables where variable_name='aria_checkpoint_interval';
VARIABLE_NAME	VARIABLE_VALUE
ARIA_CHECKPOINT_INTERVAL	30
set global aria_checkpoint_interval=1;
select @@global.aria_checkpoint_interval;
@@global.aria_checkpoint_interval
1
set session aria_checkpoint_interval=1;
ERROR HY000: Variable 'aria_checkpoint_interval' is a GLOBAL variable and should be set with SET GLOBAL
set global aria_checkpoint_interval=1.1;
ERROR 42000: Incorrect argument type to variable 'aria_checkpoint_interval'
set global aria_checkpoint_interval=1e1;
ERROR 42000: Incorrect argument type to variable 'aria_checkpoint_interval'
set global aria_checkpoint_interval="foo";
ERROR 42000: Incorrect argument type to variable 'aria_checkpoint_interval'
set global aria_checkpoint_interval=0;
select @@global.aria_checkpoint_interval;
@@global.aria_checkpoint_interval
0
set global aria_checkpoint_interval=cast(-1 as unsigned int);
Warnings:
Note	1105	Cast to unsigned converted negative integer to it's positive complement
Note	1105	Cast to unsigned converted negative integer to it's positive complement
Warning	1292	Truncated incorrect aria_checkpoint_interval value: '18446744073709551615'
select @@global.aria_checkpoint_interval;
@@global.aria_checkpoint_interval
4294967295
SET @@global.aria_checkpoint_interval = @start_global_value;
