SET @start_global_value = @@global.aria_group_commit_interval;
select @@global.aria_group_commit_interval;
@@global.aria_group_commit_interval
0
select @@session.aria_group_commit_interval;
ERROR HY000: Variable 'aria_group_commit_interval' is a GLOBAL variable
show global variables like 'aria_group_commit_interval';
Variable_name	Value
aria_group_commit_interval	0
show session variables like 'aria_group_commit_interval';
Variable_name	Value
aria_group_commit_interval	0
select * from information_schema.global_variables where variable_name='aria_group_commit_interval';
VARIABLE_NAME	VARIABLE_VALUE
ARIA_GROUP_COMMIT_INTERVAL	0
select * from information_schema.session_variables where variable_name='aria_group_commit_interval';
VARIABLE_NAME	VARIABLE_VALUE
ARIA_GROUP_COMMIT_INTERVAL	0
set global aria_group_commit_interval=1;
select @@global.aria_group_commit_interval;
@@global.aria_group_commit_interval
1
set session aria_group_commit_interval=1;
ERROR HY000: Variable 'aria_group_commit_interval' is a GLOBAL variable and should be set with SET GLOBAL
set global aria_group_commit_interval=1.1;
ERROR 42000: Incorrect argument type to variable 'aria_group_commit_interval'
set global aria_group_commit_interval=1e1;
ERROR 42000: Incorrect argument type to variable 'aria_group_commit_interval'
set global aria_group_commit_interval="foo";
ERROR 42000: Incorrect argument type to variable 'aria_group_commit_interval'
set global aria_group_commit_interval=0;
select @@global.aria_group_commit_interval;
@@global.aria_group_commit_interval
0
set global aria_group_commit_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_group_commit_interval value: '18446744073709551615'
select @@global.aria_group_commit_interval;
@@global.aria_group_commit_interval
4294967295
SET @@global.aria_group_commit_interval = @start_global_value;
