SET @start_global_value = @@global.slave_transaction_retries;
SELECT @start_global_value;
@start_global_value
10
'#--------------------FN_DYNVARS_149_01-------------------------#'
SET @@global.slave_transaction_retries = 50;
SET @@global.slave_transaction_retries = DEFAULT;
SELECT @@global.slave_transaction_retries;
@@global.slave_transaction_retries
10
'#--------------------FN_DYNVARS_149_02-------------------------#'
SET @@global.slave_transaction_retries = DEFAULT;
SELECT @@global.slave_transaction_retries = 10;
@@global.slave_transaction_retries = 10
1
'#--------------------FN_DYNVARS_149_03-------------------------#'
SET @@global.slave_transaction_retries = 0;
SELECT @@global.slave_transaction_retries;
@@global.slave_transaction_retries
0
SET @@global.slave_transaction_retries = 1;
SELECT @@global.slave_transaction_retries;
@@global.slave_transaction_retries
1
SET @@global.slave_transaction_retries = 15;
SELECT @@global.slave_transaction_retries;
@@global.slave_transaction_retries
15
SET @@global.slave_transaction_retries = 1024;
SELECT @@global.slave_transaction_retries;
@@global.slave_transaction_retries
1024
SET @@global.slave_transaction_retries = 2147483648;
SELECT @@global.slave_transaction_retries;
@@global.slave_transaction_retries
2147483648
SET @@global.slave_transaction_retries = 2147483648*2-1;
SELECT @@global.slave_transaction_retries;
@@global.slave_transaction_retries
4294967295
SET @@global.slave_transaction_retries = 2147483649*2;
Warnings:
Warning	1292	Truncated incorrect slave_transaction_retries value: '4294967298'
SELECT @@global.slave_transaction_retries;
@@global.slave_transaction_retries
4294967295
SET @@global.slave_transaction_retries = 4294967295;
SELECT @@global.slave_transaction_retries;
@@global.slave_transaction_retries
4294967295
'#--------------------FN_DYNVARS_149_04-------------------------#'
SET @@slave_transaction_retries = 2;
ERROR HY000: Variable 'slave_transaction_retries' is a GLOBAL variable and should be set with SET GLOBAL
SET @@session.slave_transaction_retries = 3;
ERROR HY000: Variable 'slave_transaction_retries' is a GLOBAL variable and should be set with SET GLOBAL
SET @@local.slave_transaction_retries = 4;
ERROR HY000: Variable 'slave_transaction_retries' is a GLOBAL variable and should be set with SET GLOBAL
'#------------------FN_DYNVARS_149_05-----------------------#'
SET @@global.slave_transaction_retries = -1;
Warnings:
Warning	1292	Truncated incorrect slave_transaction_retries value: '-1'
SELECT @@global.slave_transaction_retries;
@@global.slave_transaction_retries
0
SET @@global.slave_transaction_retries = 2147483649*2147483649;
Warnings:
Warning	1292	Truncated incorrect slave_transaction_retries value: '4611686022722355201'
SELECT @@global.slave_transaction_retries;
@@global.slave_transaction_retries
4294967295
SET @@global.slave_transaction_retries = 65530.34;
ERROR 42000: Incorrect argument type to variable 'slave_transaction_retries'
SET @@global.slave_transaction_retries = '100';
ERROR 42000: Incorrect argument type to variable 'slave_transaction_retries'
SET @@global.slave_transaction_retries = 7483649.56;
ERROR 42000: Incorrect argument type to variable 'slave_transaction_retries'
SET @@global.slave_transaction_retries = ON;
ERROR 42000: Incorrect argument type to variable 'slave_transaction_retries'
SET @@global.slave_transaction_retries = OFF;
ERROR 42000: Incorrect argument type to variable 'slave_transaction_retries'
'#------------------FN_DYNVARS_149_06-----------------------#'
SET @@global.slave_transaction_retries = 3000;
SELECT @@global.slave_transaction_retries = VARIABLE_VALUE 
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES 
WHERE VARIABLE_NAME='slave_transaction_retries';
@@global.slave_transaction_retries = VARIABLE_VALUE
1
'#------------------FN_DYNVARS_149_07-----------------------#'
SELECT count(VARIABLE_VALUE) 
FROM INFORMATION_SCHEMA.SESSION_VARIABLES 
WHERE VARIABLE_NAME='slave_transaction_retries';
count(VARIABLE_VALUE)
1
'#------------------FN_DYNVARS_149_08-----------------------#'
SET @@global.slave_transaction_retries = TRUE;
SELECT @@global.slave_transaction_retries;
@@global.slave_transaction_retries
1
SET @@global.slave_transaction_retries = FALSE;
SELECT @@global.slave_transaction_retries;
@@global.slave_transaction_retries
0
'#---------------------FN_DYNVARS_149_09----------------------#'
SET @@global.slave_transaction_retries = 60*60;
SELECT @@slave_transaction_retries = @@global.slave_transaction_retries;
@@slave_transaction_retries = @@global.slave_transaction_retries
1
'#---------------------FN_DYNVARS_149_10----------------------#'
SET slave_transaction_retries = 2048;
ERROR HY000: Variable 'slave_transaction_retries' is a GLOBAL variable and should be set with SET GLOBAL
SELECT slave_transaction_retries;
ERROR 42S22: Unknown column 'slave_transaction_retries' in 'field list'
SELECT @@slave_transaction_retries;
@@slave_transaction_retries
3600
SET global slave_transaction_retries = 99;
SET @@global.slave_transaction_retries = @start_global_value;
SELECT @@global.slave_transaction_retries;
@@global.slave_transaction_retries
10
