summaryrefslogtreecommitdiff
path: root/mysql-test/suite/sys_vars/r/query_cache_type_basic.result
blob: bb49d671840f6923668dff8ac44349fc344ebe5d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
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
ON
SET @@session.query_cache_type = 0;
SET @@session.query_cache_type = DEFAULT;
SELECT @@session.query_cache_type;
@@session.query_cache_type
ON
'#---------------------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 global query_cache_type = 'ON';
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