SET @start_value = @@global.delayed_queue_size;
SELECT @start_value;
@start_value
1000
'#--------------------FN_DYNVARS_026_01------------------------#'
SET @@global.delayed_queue_size = 100;
SET @@global.delayed_queue_size = DEFAULT;
SELECT @@global.delayed_queue_size;
@@global.delayed_queue_size
1000
'#---------------------FN_DYNVARS_026_02-------------------------#'
SET @@global.delayed_queue_size = @start_value;
SELECT @@global.delayed_queue_size = 1000;
@@global.delayed_queue_size = 1000
1
'#--------------------FN_DYNVARS_026_03------------------------#'
SET @@global.delayed_queue_size = 10000;
SELECT @@global.delayed_queue_size;
@@global.delayed_queue_size
10000
SET @@global.delayed_queue_size = 4294967295;
SELECT @@global.delayed_queue_size;
@@global.delayed_queue_size
4294967295
SET @@global.delayed_queue_size = 1;
SELECT @@global.delayed_queue_size;
@@global.delayed_queue_size
1
'#--------------------FN_DYNVARS_026_04-------------------------#'
SET @@global.delayed_queue_size = 0;
Warnings:
Warning	1292	Truncated incorrect delayed_queue_size value: '0'
SELECT @@global.delayed_queue_size;
@@global.delayed_queue_size
1
SET @@global.delayed_queue_size = -1024;
Warnings:
Warning	1292	Truncated incorrect delayed_queue_size value: '-1024'
SELECT @@global.delayed_queue_size;
@@global.delayed_queue_size
1
SET @@global.delayed_queue_size = 42949672950;
Warnings:
Warning	1292	Truncated incorrect delayed_queue_size value: '42949672950'
SELECT @@global.delayed_queue_size;
@@global.delayed_queue_size
4294967295
SET @@global.delayed_queue_size = 429496729.5;
ERROR 42000: Incorrect argument type to variable 'delayed_queue_size'
SELECT @@global.delayed_queue_size;
@@global.delayed_queue_size
4294967295
SET @@global.delayed_queue_size = ON;
ERROR 42000: Incorrect argument type to variable 'delayed_queue_size'
SELECT @@delayed_queue_size;
@@delayed_queue_size
4294967295
'#-------------------FN_DYNVARS_026_05----------------------------#'
SET @@session.delayed_queue_size = 0;
ERROR HY000: Variable 'delayed_queue_size' is a GLOBAL variable and should be set with SET GLOBAL
SELECT @@session.delayed_queue_size;
ERROR HY000: Variable 'delayed_queue_size' is a GLOBAL variable
'#----------------------FN_DYNVARS_026_06------------------------#'
SELECT @@global.delayed_queue_size = VARIABLE_VALUE 
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES 
WHERE VARIABLE_NAME='delayed_queue_size';
@@global.delayed_queue_size = VARIABLE_VALUE
1
SELECT @@delayed_queue_size = VARIABLE_VALUE 
FROM INFORMATION_SCHEMA.SESSION_VARIABLES 
WHERE VARIABLE_NAME='delayed_queue_size';
@@delayed_queue_size = VARIABLE_VALUE
1
'#---------------------FN_DYNVARS_026_07----------------------#'
SET @@global.delayed_queue_size = TRUE;
SELECT @@global.delayed_queue_size;
@@global.delayed_queue_size
1
SET @@global.delayed_queue_size = FALSE;
Warnings:
Warning	1292	Truncated incorrect delayed_queue_size value: '0'
SELECT @@global.delayed_queue_size;
@@global.delayed_queue_size
1
'#---------------------FN_DYNVARS_026_08----------------------#'
SET @@global.delayed_queue_size = 1;
SELECT @@delayed_queue_size = @@global.delayed_queue_size;
@@delayed_queue_size = @@global.delayed_queue_size
1
'#---------------------FN_DYNVARS_026_09----------------------#'
SET delayed_queue_size = 1;
ERROR HY000: Variable 'delayed_queue_size' is a GLOBAL variable and should be set with SET GLOBAL
SELECT @@delayed_queue_size;
@@delayed_queue_size
1
SET local.delayed_queue_size = 1;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'delayed_queue_size = 1' at line 1
SELECT local.delayed_queue_size;
ERROR 42S02: Unknown table 'local' in field list
SET global.delayed_queue_size = 1;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'delayed_queue_size = 1' at line 1
SELECT global.delayed_queue_size;
ERROR 42S02: Unknown table 'global' in field list
SELECT delayed_queue_size = @@session.delayed_queue_size;
ERROR 42S22: Unknown column 'delayed_queue_size' in 'field list'
SET @@global.delayed_queue_size = @start_value;
SELECT @@global.delayed_queue_size;
@@global.delayed_queue_size
1000
