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