SET @global_start_value = @@global.query_cache_type;
SELECT @global_start_value;
@global_start_value
ON
SET @session_start_value = @@session.query_cache_type;
SELECT @session_start_value;
@session_start_value
ON
'#--------------------FN_DYNVARS_134_01------------------------#'
SET @@global.query_cache_type = 0;
SET @@global.query_cache_type = DEFAULT;
SELECT @@global.query_cache_type;
@@global.query_cache_type
OFF
SET @@session.query_cache_type = 0;
SET @@session.query_cache_type = DEFAULT;
SELECT @@session.query_cache_type;
@@session.query_cache_type
OFF
'#---------------------FN_DYNVARS_134_02-------------------------#'
SET @@global.query_cache_type = NULL;
ERROR 42000: Variable 'query_cache_type' can't be set to the value of 'NULL'
SET @@global.query_cache_type = '';
ERROR 42000: Variable 'query_cache_type' can't be set to the value of ''
SET @@session.query_cache_type = NULL;
ERROR 42000: Variable 'query_cache_type' can't be set to the value of 'NULL'
SET @@session.query_cache_type = '';
ERROR 42000: Variable 'query_cache_type' can't be set to the value of ''
'#--------------------FN_DYNVARS_134_03------------------------#'
SET @@global.query_cache_type = OFF;
SELECT @@global.query_cache_type;
@@global.query_cache_type
OFF
SET @@global.query_cache_type = ON;
SELECT @@global.query_cache_type;
@@global.query_cache_type
ON
SET @@global.query_cache_type = DEMAND;
SELECT @@global.query_cache_type;
@@global.query_cache_type
DEMAND
SET @@session.query_cache_type = OFF;
SELECT @@session.query_cache_type;
@@session.query_cache_type
OFF
SET @@session.query_cache_type = ON;
SELECT @@session.query_cache_type;
@@session.query_cache_type
ON
SET @@session.query_cache_type = DEMAND;
SELECT @@session.query_cache_type;
@@session.query_cache_type
DEMAND
'#--------------------FN_DYNVARS_134_04-------------------------#'
SET @@global.query_cache_type = -1;
ERROR 42000: Variable 'query_cache_type' can't be set to the value of '-1'
SET @@global.query_cache_type = ONDEMAND;
ERROR 42000: Variable 'query_cache_type' can't be set to the value of 'ONDEMAND'
SET @@global.query_cache_type = 'ON,OFF';
ERROR 42000: Variable 'query_cache_type' can't be set to the value of 'ON,OFF'
SET @@global.query_cache_type = 'OF';
ERROR 42000: Variable 'query_cache_type' can't be set to the value of 'OF'
SET @@global.query_cache_type = YES;
ERROR 42000: Variable 'query_cache_type' can't be set to the value of 'YES'
SET @@global.query_cache_type = ' ';
ERROR 42000: Variable 'query_cache_type' can't be set to the value of ' '
'#-------------------FN_DYNVARS_134_05----------------------------#'
SELECT @@session.query_cache_type = VARIABLE_VALUE 
FROM INFORMATION_SCHEMA.SESSION_VARIABLES 
WHERE VARIABLE_NAME='query_cache_type';
@@session.query_cache_type = VARIABLE_VALUE
1
'#----------------------FN_DYNVARS_134_06------------------------#'
SELECT @@global.query_cache_type = VARIABLE_VALUE
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES 
WHERE VARIABLE_NAME='query_cache_type';
@@global.query_cache_type = VARIABLE_VALUE
1
'#---------------------FN_DYNVARS_134_07-------------------------#'
SET @@global.query_cache_type = 0;
SELECT @@global.query_cache_type;
@@global.query_cache_type
OFF
SET @@global.query_cache_type = 1;
SELECT @@global.query_cache_type;
@@global.query_cache_type
ON
SET @@global.query_cache_type = 2;
SELECT @@global.query_cache_type;
@@global.query_cache_type
DEMAND
SET @@global.query_cache_type = 0.4;
ERROR 42000: Incorrect argument type to variable 'query_cache_type'
SET @@global.query_cache_type = 3;
ERROR 42000: Variable 'query_cache_type' can't be set to the value of '3'
'#---------------------FN_DYNVARS_134_08----------------------#'
SET @@global.query_cache_type = TRUE;
SELECT @@global.query_cache_type;
@@global.query_cache_type
ON
SET @@global.query_cache_type = FALSE;
SELECT @@global.query_cache_type;
@@global.query_cache_type
OFF
'#---------------------FN_DYNVARS_134_09----------------------#'
SET query_cache_type = 'ON';
SET session.query_cache_type = 'OFF';
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'query_cache_type = 'OFF'' at line 1
SET global.query_cache_type = 'DEMAND';
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'query_cache_type = 'DEMAND'' at line 1
SET session query_cache_type = 1;
SELECT @@query_cache_type;
@@query_cache_type
ON
SET global query_cache_type = 0;
SELECT @@global.query_cache_type;
@@global.query_cache_type
OFF
SET @@global.query_cache_type = @global_start_value;
SELECT @@global.query_cache_type;
@@global.query_cache_type
ON
SET @@session.query_cache_type = @session_start_value;
SELECT @@session.query_cache_type;
@@session.query_cache_type
ON
