SET @start_global_value = @@global.myisam_max_sort_file_size;
SELECT @start_global_value;
@start_global_value
2146435072
'#--------------------FN_DYNVARS_094_01-------------------------#'
SET @@global.myisam_max_sort_file_size = 500000;
Warnings:
Warning	1292	Truncated incorrect myisam_max_sort_file_size value: '500000'
SET @@global.myisam_max_sort_file_size = DEFAULT;
SELECT @@global.myisam_max_sort_file_size;
@@global.myisam_max_sort_file_size
2146435072
'#--------------------FN_DYNVARS_094_02-------------------------#'
SET @@global.myisam_max_sort_file_size = DEFAULT;
SELECT @@global.myisam_max_sort_file_size = 2147483648;
@@global.myisam_max_sort_file_size = 2147483648
0
'#--------------------FN_DYNVARS_094_03-------------------------#'
SET @@global.myisam_max_sort_file_size = 0;
SELECT @@global.myisam_max_sort_file_size;
@@global.myisam_max_sort_file_size
0
SET @@global.myisam_max_sort_file_size = 1024;
Warnings:
Warning	1292	Truncated incorrect myisam_max_sort_file_size value: '1024'
SELECT @@global.myisam_max_sort_file_size;
@@global.myisam_max_sort_file_size
0
SET @@global.myisam_max_sort_file_size = 123456789;
Warnings:
Warning	1292	Truncated incorrect myisam_max_sort_file_size value: '123456789'
SELECT @@global.myisam_max_sort_file_size;
@@global.myisam_max_sort_file_size
122683392
SET @@global.myisam_max_sort_file_size = 2147483648*2;
SELECT @@global.myisam_max_sort_file_size;
@@global.myisam_max_sort_file_size
4294967296
SET @@global.myisam_max_sort_file_size = 2147483648*1024;
SELECT @@global.myisam_max_sort_file_size;
@@global.myisam_max_sort_file_size
2199023255552
SELECT @@global.myisam_max_sort_file_size;
@@global.myisam_max_sort_file_size
2199023255552
SET @@global.myisam_max_sort_file_size = 2147483648*2147483648;
'#--------------------FN_DYNVARS_094_04-------------------------#'
SET @@myisam_max_sort_file_size = 2;
ERROR HY000: Variable 'myisam_max_sort_file_size' is a GLOBAL variable and should be set with SET GLOBAL
SET @@session.myisam_max_sort_file_size = 3;
ERROR HY000: Variable 'myisam_max_sort_file_size' is a GLOBAL variable and should be set with SET GLOBAL
SET @@local.myisam_max_sort_file_size = 4;
ERROR HY000: Variable 'myisam_max_sort_file_size' is a GLOBAL variable and should be set with SET GLOBAL
'#------------------FN_DYNVARS_094_05-----------------------#'
SET @@global.myisam_max_sort_file_size = -1;
Warnings:
Warning	1292	Truncated incorrect myisam_max_sort_file_size value: '-1'
SELECT @@global.myisam_max_sort_file_size;
@@global.myisam_max_sort_file_size
0
SET @@global.myisam_max_sort_file_size = -2147483648;
Warnings:
Warning	1292	Truncated incorrect myisam_max_sort_file_size value: '-2147483648'
SELECT @@global.myisam_max_sort_file_size;
@@global.myisam_max_sort_file_size
0
SET @@global.myisam_max_sort_file_size = -2147483649;
Warnings:
Warning	1292	Truncated incorrect myisam_max_sort_file_size value: '-2147483649'
SELECT @@global.myisam_max_sort_file_size;
@@global.myisam_max_sort_file_size
0
SET @@global.myisam_max_sort_file_size = 65530.34;
ERROR 42000: Incorrect argument type to variable 'myisam_max_sort_file_size'
SELECT @@global.myisam_max_sort_file_size;
@@global.myisam_max_sort_file_size
0
SET @@global.myisam_max_sort_file_size = 2147483649.56;
ERROR 42000: Incorrect argument type to variable 'myisam_max_sort_file_size'
SELECT @@global.myisam_max_sort_file_size;
@@global.myisam_max_sort_file_size
0
SET @@global.myisam_max_sort_file_size = 1G;
ERROR 42000: Incorrect argument type to variable 'myisam_max_sort_file_size'
'#------------------FN_DYNVARS_094_06-----------------------#'
SET @@global.myisam_max_sort_file_size = 3000;
Warnings:
Warning	1292	Truncated incorrect myisam_max_sort_file_size value: '3000'
SELECT @@global.myisam_max_sort_file_size = VARIABLE_VALUE 
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES 
WHERE VARIABLE_NAME='myisam_max_sort_file_size';
@@global.myisam_max_sort_file_size = VARIABLE_VALUE
1
'#------------------FN_DYNVARS_094_07-----------------------#'
SELECT count(VARIABLE_VALUE) 
FROM INFORMATION_SCHEMA.SESSION_VARIABLES 
WHERE VARIABLE_NAME='myisam_max_sort_file_size';
count(VARIABLE_VALUE)
1
'#------------------FN_DYNVARS_094_08-----------------------#'
SET @@global.myisam_max_sort_file_size = TRUE;
Warnings:
Warning	1292	Truncated incorrect myisam_max_sort_file_size value: '1'
SELECT @@global.myisam_max_sort_file_size;
@@global.myisam_max_sort_file_size
0
SET @@global.myisam_max_sort_file_size = FALSE;
SELECT @@global.myisam_max_sort_file_size;
@@global.myisam_max_sort_file_size
0
'#---------------------FN_DYNVARS_001_09----------------------#'
SET @@global.myisam_max_sort_file_size = 512;
Warnings:
Warning	1292	Truncated incorrect myisam_max_sort_file_size value: '512'
SELECT @@myisam_max_sort_file_size = @@global.myisam_max_sort_file_size;
@@myisam_max_sort_file_size = @@global.myisam_max_sort_file_size
1
'#---------------------FN_DYNVARS_001_10----------------------#'
SET myisam_max_sort_file_size = 2048;
ERROR HY000: Variable 'myisam_max_sort_file_size' is a GLOBAL variable and should be set with SET GLOBAL
SELECT myisam_max_sort_file_size;
ERROR 42S22: Unknown column 'myisam_max_sort_file_size' in 'field list'
SELECT @@myisam_max_sort_file_size;
@@myisam_max_sort_file_size
0
SET global myisam_max_sort_file_size = 64;
Warnings:
Warning	1292	Truncated incorrect myisam_max_sort_file_size value: '64'
SET @@global.myisam_max_sort_file_size = @start_global_value;
SELECT @@global.myisam_max_sort_file_size;
@@global.myisam_max_sort_file_size
2146435072
