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