1
'#---------------------BS_STVARS_015_01----------------------#'
2
SELECT COUNT(@@GLOBAL.have_query_cache);
3
COUNT(@@GLOBAL.have_query_cache)
6
'#---------------------BS_STVARS_015_02----------------------#'
7
SET @@GLOBAL.have_query_cache=1;
8
ERROR HY000: Variable 'have_query_cache' is a read only variable
9
Expected error 'Read only variable'
10
SELECT COUNT(@@GLOBAL.have_query_cache);
11
COUNT(@@GLOBAL.have_query_cache)
14
'#---------------------BS_STVARS_015_03----------------------#'
15
SELECT @@GLOBAL.have_query_cache = VARIABLE_VALUE
16
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
17
WHERE VARIABLE_NAME='have_query_cache';
18
@@GLOBAL.have_query_cache = VARIABLE_VALUE
21
SELECT COUNT(@@GLOBAL.have_query_cache);
22
COUNT(@@GLOBAL.have_query_cache)
25
SELECT COUNT(VARIABLE_VALUE)
26
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
27
WHERE VARIABLE_NAME='have_query_cache';
31
'#---------------------BS_STVARS_015_04----------------------#'
32
SELECT @@have_query_cache = @@GLOBAL.have_query_cache;
33
@@have_query_cache = @@GLOBAL.have_query_cache
36
'#---------------------BS_STVARS_015_05----------------------#'
37
SELECT COUNT(@@have_query_cache);
38
COUNT(@@have_query_cache)
41
SELECT COUNT(@@local.have_query_cache);
42
ERROR HY000: Variable 'have_query_cache' is a GLOBAL variable
43
Expected error 'Variable is a GLOBAL variable'
44
SELECT COUNT(@@SESSION.have_query_cache);
45
ERROR HY000: Variable 'have_query_cache' is a GLOBAL variable
46
Expected error 'Variable is a GLOBAL variable'
47
SELECT COUNT(@@GLOBAL.have_query_cache);
48
COUNT(@@GLOBAL.have_query_cache)
51
SELECT have_query_cache = @@SESSION.have_query_cache;
52
ERROR 42S22: Unknown column 'have_query_cache' in 'field list'
53
Expected error 'Readonly variable'