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