SET @global_start_value = @@global.innodb_flushing_avg_loops;
SELECT @global_start_value;
@global_start_value
30
'#--------------------FN_DYNVARS_046_01------------------------#'
SET @@global.innodb_flushing_avg_loops = 1;
SET @@global.innodb_flushing_avg_loops = DEFAULT;
SELECT @@global.innodb_flushing_avg_loops;
@@global.innodb_flushing_avg_loops
30
'#---------------------FN_DYNVARS_046_02-------------------------#'
SET innodb_flushing_avg_loops = 1;
ERROR HY000: Variable 'innodb_flushing_avg_loops' is a GLOBAL variable and should be set with SET GLOBAL
SELECT @@innodb_flushing_avg_loops;
@@innodb_flushing_avg_loops
30
SELECT local.innodb_flushing_avg_loops;
ERROR 42S02: Unknown table 'local' in field list
SET global innodb_flushing_avg_loops = 1;
SELECT @@global.innodb_flushing_avg_loops;
@@global.innodb_flushing_avg_loops
1
'#--------------------FN_DYNVARS_046_03------------------------#'
SET @@global.innodb_flushing_avg_loops = 1;
SELECT @@global.innodb_flushing_avg_loops;
@@global.innodb_flushing_avg_loops
1
SET @@global.innodb_flushing_avg_loops = 60;
SELECT @@global.innodb_flushing_avg_loops;
@@global.innodb_flushing_avg_loops
60
SET @@global.innodb_flushing_avg_loops = 1000;
SELECT @@global.innodb_flushing_avg_loops;
@@global.innodb_flushing_avg_loops
1000
'#--------------------FN_DYNVARS_046_04-------------------------#'
SET @@global.innodb_flushing_avg_loops = -1;
Warnings:
Warning	1292	Truncated incorrect innodb_flushing_avg_loops value: '-1'
SELECT @@global.innodb_flushing_avg_loops;
@@global.innodb_flushing_avg_loops
1
SET @@global.innodb_flushing_avg_loops = "T";
ERROR 42000: Incorrect argument type to variable 'innodb_flushing_avg_loops'
SELECT @@global.innodb_flushing_avg_loops;
@@global.innodb_flushing_avg_loops
1
SET @@global.innodb_flushing_avg_loops = "Y";
ERROR 42000: Incorrect argument type to variable 'innodb_flushing_avg_loops'
SELECT @@global.innodb_flushing_avg_loops;
@@global.innodb_flushing_avg_loops
1
SET @@global.innodb_flushing_avg_loops = 1001;
Warnings:
Warning	1292	Truncated incorrect innodb_flushing_avg_loops value: '1001'
SELECT @@global.innodb_flushing_avg_loops;
@@global.innodb_flushing_avg_loops
1000
'#----------------------FN_DYNVARS_046_05------------------------#'
SELECT @@global.innodb_flushing_avg_loops =
VARIABLE_VALUE FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
WHERE VARIABLE_NAME='innodb_flushing_avg_loops';
@@global.innodb_flushing_avg_loops =
VARIABLE_VALUE
1
SELECT @@global.innodb_flushing_avg_loops;
@@global.innodb_flushing_avg_loops
1000
SELECT VARIABLE_VALUE FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
WHERE VARIABLE_NAME='innodb_flushing_avg_loops';
VARIABLE_VALUE
1000
'#---------------------FN_DYNVARS_046_06-------------------------#'
SET @@global.innodb_flushing_avg_loops = OFF;
ERROR 42000: Incorrect argument type to variable 'innodb_flushing_avg_loops'
SELECT @@global.innodb_flushing_avg_loops;
@@global.innodb_flushing_avg_loops
1000
SET @@global.innodb_flushing_avg_loops = ON;
ERROR 42000: Incorrect argument type to variable 'innodb_flushing_avg_loops'
SELECT @@global.innodb_flushing_avg_loops;
@@global.innodb_flushing_avg_loops
1000
'#---------------------FN_DYNVARS_046_07----------------------#'
SET @@global.innodb_flushing_avg_loops = TRUE;
SELECT @@global.innodb_flushing_avg_loops;
@@global.innodb_flushing_avg_loops
1
SET @@global.innodb_flushing_avg_loops = FALSE;
Warnings:
Warning	1292	Truncated incorrect innodb_flushing_avg_loops value: '0'
SELECT @@global.innodb_flushing_avg_loops;
@@global.innodb_flushing_avg_loops
1
SET @@global.innodb_flushing_avg_loops = @global_start_value;
SELECT @@global.innodb_flushing_avg_loops;
@@global.innodb_flushing_avg_loops
30
