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