summaryrefslogtreecommitdiff
path: root/mysql-test/r/query_cache_type_basic.result
blob: 101853daa803298bb9470c9953dbdc08cb24a932 (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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
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';
SELECT @@global.query_cache_type;
@@global.query_cache_type
OFF
'Bug# 34828: OF is taken as OFF.'
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;
SELECT @@global.query_cache_type;
@@global.query_cache_type
OFF
SET @@global.query_cache_type = 1.0;
SELECT @@global.query_cache_type;
@@global.query_cache_type
ON
SET @@global.query_cache_type = 1.1;
SELECT @@global.query_cache_type;
@@global.query_cache_type
ON
SET @@global.query_cache_type = 1.5;
SELECT @@global.query_cache_type;
@@global.query_cache_type
DEMAND
SET @@global.query_cache_type = 2.49;
SELECT @@global.query_cache_type;
@@global.query_cache_type
DEMAND
SET @@session.query_cache_type = 0.5;
SELECT @@session.query_cache_type;
@@session.query_cache_type
ON
SET @@session.query_cache_type = 1.6;
SELECT @@session.query_cache_type;
@@session.query_cache_type
DEMAND
'Bug: Decimal values can be used within the range [0.0-2.5). Values';
'are rounded to 0,1,2 as evident from outcome.';
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