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