SET @start_global_value = @@global.myisam_sort_buffer_size ;
SELECT @start_global_value;
@start_global_value
134216704
SET @start_session_value = @@session.myisam_sort_buffer_size ;
SELECT @start_session_value;
@start_session_value
134216704
'#--------------------FN_DYNVARS_005_01-------------------------#'
SET @@global.myisam_sort_buffer_size   = 100;
Warnings:
Warning	1292	Truncated incorrect myisam_sort_buffer_size value: '100'
SET @@global.myisam_sort_buffer_size   = DEFAULT;
SELECT @@global.myisam_sort_buffer_size  ;
@@global.myisam_sort_buffer_size
134216704
SET @@session.myisam_sort_buffer_size   = 200;
Warnings:
Warning	1292	Truncated incorrect myisam_sort_buffer_size value: '200'
SET @@session.myisam_sort_buffer_size   = DEFAULT;
SELECT @@session.myisam_sort_buffer_size  ;
@@session.myisam_sort_buffer_size
134216704
'#--------------------FN_DYNVARS_005_02-------------------------#'
SET @@global.myisam_sort_buffer_size   = DEFAULT;
SELECT @@global.myisam_sort_buffer_size   = 134216704;
@@global.myisam_sort_buffer_size   = 134216704
1
SET @@session.myisam_sort_buffer_size   = DEFAULT;
SELECT @@session.myisam_sort_buffer_size   = 134216704;
@@session.myisam_sort_buffer_size   = 134216704
1
'#--------------------FN_DYNVARS_005_03-------------------------#'
SET @@global.myisam_sort_buffer_size   = 4;
Warnings:
Warning	1292	Truncated incorrect myisam_sort_buffer_size value: '4'
SELECT @@global.myisam_sort_buffer_size  ;
@@global.myisam_sort_buffer_size
4096
SET @@global.myisam_sort_buffer_size   = 4294967295;
SELECT @@global.myisam_sort_buffer_size  ;
@@global.myisam_sort_buffer_size
4294967295
SET @@global.myisam_sort_buffer_size   = 655354;
SELECT @@global.myisam_sort_buffer_size  ;
@@global.myisam_sort_buffer_size
655354
'#--------------------FN_DYNVARS_005_04-------------------------#'
SET @@session.myisam_sort_buffer_size   = 4;
Warnings:
Warning	1292	Truncated incorrect myisam_sort_buffer_size value: '4'
SELECT @@session.myisam_sort_buffer_size  ;
@@session.myisam_sort_buffer_size
4096
SET @@session.myisam_sort_buffer_size   = 4294967295;
SELECT @@session.myisam_sort_buffer_size  ;
@@session.myisam_sort_buffer_size
4294967295
SET @@session.myisam_sort_buffer_size   = 655345;
SELECT @@session.myisam_sort_buffer_size  ;
@@session.myisam_sort_buffer_size
655345
'#------------------FN_DYNVARS_005_05-----------------------#'
SET @@global.myisam_sort_buffer_size   = 0;
Warnings:
Warning	1292	Truncated incorrect myisam_sort_buffer_size value: '0'
SELECT @@global.myisam_sort_buffer_size  ;
@@global.myisam_sort_buffer_size
4096
SET @@global.myisam_sort_buffer_size   = -1024;
Warnings:
Warning	1292	Truncated incorrect myisam_sort_buffer_size value: '-1024'
SELECT @@global.myisam_sort_buffer_size  ;
@@global.myisam_sort_buffer_size
4096
SET @@global.myisam_sort_buffer_size   = 429496729533;
SELECT @@global.myisam_sort_buffer_size  ;
@@global.myisam_sort_buffer_size
4294967295
SET @@global.myisam_sort_buffer_size   = 65530.34;
ERROR 42000: Incorrect argument type to variable 'myisam_sort_buffer_size'
SELECT @@global.myisam_sort_buffer_size  ;
@@global.myisam_sort_buffer_size
4294967295
SET @@global.myisam_sort_buffer_size   = test;
ERROR 42000: Incorrect argument type to variable 'myisam_sort_buffer_size'
SELECT @@global.myisam_sort_buffer_size  ;
@@global.myisam_sort_buffer_size
4294967295
SET @@global.myisam_sort_buffer_size   = "test";
ERROR 42000: Incorrect argument type to variable 'myisam_sort_buffer_size'
SELECT @@global.myisam_sort_buffer_size  ;
@@global.myisam_sort_buffer_size
4294967295
SET @@global.myisam_sort_buffer_size   = 'test';
ERROR 42000: Incorrect argument type to variable 'myisam_sort_buffer_size'
SELECT @@global.myisam_sort_buffer_size  ;
@@global.myisam_sort_buffer_size
4294967295
SET @@global.myisam_sort_buffer_size   = ON;
ERROR 42000: Incorrect argument type to variable 'myisam_sort_buffer_size'
SELECT @@global.myisam_sort_buffer_size  ;
@@global.myisam_sort_buffer_size
4294967295
SET @@session.myisam_sort_buffer_size   = 0;
Warnings:
Warning	1292	Truncated incorrect myisam_sort_buffer_size value: '0'
SELECT @@session.myisam_sort_buffer_size  ;
@@session.myisam_sort_buffer_size
4096
SET @@session.myisam_sort_buffer_size   = -2;
Warnings:
Warning	1292	Truncated incorrect myisam_sort_buffer_size value: '-2'
SELECT @@session.myisam_sort_buffer_size  ;
@@session.myisam_sort_buffer_size
4096
SET @@session.myisam_sort_buffer_size   = 65530.34;
ERROR 42000: Incorrect argument type to variable 'myisam_sort_buffer_size'
SELECT @@session.myisam_sort_buffer_size  ;
@@session.myisam_sort_buffer_size
4096
SET @@session.myisam_sort_buffer_size   = test;
ERROR 42000: Incorrect argument type to variable 'myisam_sort_buffer_size'
SELECT @@session.myisam_sort_buffer_size  ;
@@session.myisam_sort_buffer_size
4096
SET @@session.myisam_sort_buffer_size   = "test";
ERROR 42000: Incorrect argument type to variable 'myisam_sort_buffer_size'
SELECT @@session.myisam_sort_buffer_size  ;
@@session.myisam_sort_buffer_size
4096
'#------------------FN_DYNVARS_005_06-----------------------#'
SELECT @@global.myisam_sort_buffer_size   = VARIABLE_VALUE 
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES 
WHERE VARIABLE_NAME='myisam_sort_buffer_size  ';
@@global.myisam_sort_buffer_size   = VARIABLE_VALUE
1
'#------------------FN_DYNVARS_005_07-----------------------#'
SELECT @@session.myisam_sort_buffer_size   = VARIABLE_VALUE 
FROM INFORMATION_SCHEMA.SESSION_VARIABLES 
WHERE VARIABLE_NAME='myisam_sort_buffer_size  ';
@@session.myisam_sort_buffer_size   = VARIABLE_VALUE
1
'#------------------FN_DYNVARS_005_08-----------------------#'
SET @@global.myisam_sort_buffer_size   = TRUE;
Warnings:
Warning	1292	Truncated incorrect myisam_sort_buffer_size value: '1'
SELECT @@global.myisam_sort_buffer_size  ;
@@global.myisam_sort_buffer_size
4096
SET @@global.myisam_sort_buffer_size   = FALSE;
Warnings:
Warning	1292	Truncated incorrect myisam_sort_buffer_size value: '0'
SELECT @@global.myisam_sort_buffer_size  ;
@@global.myisam_sort_buffer_size
4096
'#---------------------FN_DYNVARS_001_09----------------------#'
SET @@global.myisam_sort_buffer_size   = 10;
Warnings:
Warning	1292	Truncated incorrect myisam_sort_buffer_size value: '10'
SELECT @@myisam_sort_buffer_size   = @@global.myisam_sort_buffer_size  ;
@@myisam_sort_buffer_size   = @@global.myisam_sort_buffer_size
1
'#---------------------FN_DYNVARS_001_10----------------------#'
SET @@myisam_sort_buffer_size   = 100;
Warnings:
Warning	1292	Truncated incorrect myisam_sort_buffer_size value: '100'
SELECT @@myisam_sort_buffer_size   = @@local.myisam_sort_buffer_size  ;
@@myisam_sort_buffer_size   = @@local.myisam_sort_buffer_size
1
SELECT @@local.myisam_sort_buffer_size   = @@session.myisam_sort_buffer_size  ;
@@local.myisam_sort_buffer_size   = @@session.myisam_sort_buffer_size
1
'#---------------------FN_DYNVARS_001_11----------------------#'
SET myisam_sort_buffer_size   = 1;
Warnings:
Warning	1292	Truncated incorrect myisam_sort_buffer_size value: '1'
SELECT @@myisam_sort_buffer_size  ;
@@myisam_sort_buffer_size
4096
SELECT local.myisam_sort_buffer_size  ;
ERROR 42S02: Unknown table 'local' in field list
SELECT session.myisam_sort_buffer_size  ;
ERROR 42S02: Unknown table 'session' in field list
SELECT myisam_sort_buffer_size   = @@session.myisam_sort_buffer_size  ;
ERROR 42S22: Unknown column 'myisam_sort_buffer_size' in 'field list'
SET @@global.myisam_sort_buffer_size   = @start_global_value;
SELECT @@global.myisam_sort_buffer_size  ;
@@global.myisam_sort_buffer_size
134216704
SET @@session.myisam_sort_buffer_size   = @start_session_value;
SELECT @@session.myisam_sort_buffer_size  ;
@@session.myisam_sort_buffer_size
134216704
