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