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