← Back
Editing: query_cache_type_basic.result
SET @global_start_value = @@global.query_cache_type; Warnings: Warning 1287 '@@query_cache_type' is deprecated and will be removed in a future release. SELECT @global_start_value; @global_start_value ON SET @session_start_value = @@session.query_cache_type; Warnings: Warning 1287 '@@query_cache_type' is deprecated and will be removed in a future release. SELECT @session_start_value; @session_start_value ON '#--------------------FN_DYNVARS_134_01------------------------#' SET @@global.query_cache_type = 0; Warnings: Warning 1287 '@@query_cache_type' is deprecated and will be removed in a future release. SET @@global.query_cache_type = DEFAULT; Warnings: Warning 1287 '@@query_cache_type' is deprecated and will be removed in a future release. SELECT @@global.query_cache_type; @@global.query_cache_type OFF Warnings: Warning 1287 '@@query_cache_type' is deprecated and will be removed in a future release. SET @@session.query_cache_type = 0; Warnings: Warning 1287 '@@query_cache_type' is deprecated and will be removed in a future release. SET @@session.query_cache_type = DEFAULT; Warnings: Warning 1287 '@@query_cache_type' is deprecated and will be removed in a future release. SELECT @@session.query_cache_type; @@session.query_cache_type OFF Warnings: Warning 1287 '@@query_cache_type' is deprecated and will be removed in a future release. '#---------------------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; Warnings: Warning 1287 '@@query_cache_type' is deprecated and will be removed in a future release. SELECT @@global.query_cache_type; @@global.query_cache_type OFF Warnings: Warning 1287 '@@query_cache_type' is deprecated and will be removed in a future release. SET @@global.query_cache_type = ON; Warnings: Warning 1287 '@@query_cache_type' is deprecated and will be removed in a future release. SELECT @@global.query_cache_type; @@global.query_cache_type ON Warnings: Warning 1287 '@@query_cache_type' is deprecated and will be removed in a future release. SET @@global.query_cache_type = DEMAND; Warnings: Warning 1287 '@@query_cache_type' is deprecated and will be removed in a future release. SELECT @@global.query_cache_type; @@global.query_cache_type DEMAND Warnings: Warning 1287 '@@query_cache_type' is deprecated and will be removed in a future release. SET @@session.query_cache_type = OFF; Warnings: Warning 1287 '@@query_cache_type' is deprecated and will be removed in a future release. SELECT @@session.query_cache_type; @@session.query_cache_type OFF Warnings: Warning 1287 '@@query_cache_type' is deprecated and will be removed in a future release. SET @@session.query_cache_type = ON; Warnings: Warning 1287 '@@query_cache_type' is deprecated and will be removed in a future release. SELECT @@session.query_cache_type; @@session.query_cache_type ON Warnings: Warning 1287 '@@query_cache_type' is deprecated and will be removed in a future release. SET @@session.query_cache_type = DEMAND; Warnings: Warning 1287 '@@query_cache_type' is deprecated and will be removed in a future release. SELECT @@session.query_cache_type; @@session.query_cache_type DEMAND Warnings: Warning 1287 '@@query_cache_type' is deprecated and will be removed in a future release. '#--------------------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; Warnings: Warning 1287 '@@query_cache_type' is deprecated and will be removed in a future release. SELECT @@global.query_cache_type; @@global.query_cache_type OFF Warnings: Warning 1287 '@@query_cache_type' is deprecated and will be removed in a future release. SET @@global.query_cache_type = 1; Warnings: Warning 1287 '@@query_cache_type' is deprecated and will be removed in a future release. SELECT @@global.query_cache_type; @@global.query_cache_type ON Warnings: Warning 1287 '@@query_cache_type' is deprecated and will be removed in a future release. SET @@global.query_cache_type = 2; Warnings: Warning 1287 '@@query_cache_type' is deprecated and will be removed in a future release. SELECT @@global.query_cache_type; @@global.query_cache_type DEMAND Warnings: Warning 1287 '@@query_cache_type' is deprecated and will be removed in a future release. 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; Warnings: Warning 1287 '@@query_cache_type' is deprecated and will be removed in a future release. SELECT @@global.query_cache_type; @@global.query_cache_type ON Warnings: Warning 1287 '@@query_cache_type' is deprecated and will be removed in a future release. SET @@global.query_cache_type = FALSE; Warnings: Warning 1287 '@@query_cache_type' is deprecated and will be removed in a future release. SELECT @@global.query_cache_type; @@global.query_cache_type OFF Warnings: Warning 1287 '@@query_cache_type' is deprecated and will be removed in a future release. '#---------------------FN_DYNVARS_134_09----------------------#' SET query_cache_type = 'ON'; Warnings: Warning 1287 '@@query_cache_type' is deprecated and will be removed in a future release. 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 'session.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 'global.query_cache_type = 'DEMAND'' at line 1 SET session query_cache_type = 1; Warnings: Warning 1287 '@@query_cache_type' is deprecated and will be removed in a future release. SELECT @@query_cache_type; @@query_cache_type ON Warnings: Warning 1287 '@@query_cache_type' is deprecated and will be removed in a future release. SET global query_cache_type = 0; Warnings: Warning 1287 '@@query_cache_type' is deprecated and will be removed in a future release. SELECT @@global.query_cache_type; @@global.query_cache_type OFF Warnings: Warning 1287 '@@query_cache_type' is deprecated and will be removed in a future release. SET @@global.query_cache_type = @global_start_value; Warnings: Warning 1287 '@@query_cache_type' is deprecated and will be removed in a future release. SELECT @@global.query_cache_type; @@global.query_cache_type ON Warnings: Warning 1287 '@@query_cache_type' is deprecated and will be removed in a future release. SET @@session.query_cache_type = @session_start_value; Warnings: Warning 1287 '@@query_cache_type' is deprecated and will be removed in a future release. SELECT @@session.query_cache_type; @@session.query_cache_type ON Warnings: Warning 1287 '@@query_cache_type' is deprecated and will be removed in a future release.
Save File
Cancel