Debian Codegraph @

mysql-test/suite/sys_vars/r/have_ssl_basic.result

raw
1 '#---------------------BS_STVARS_017_01----------------------#'
2 SELECT COUNT(@@GLOBAL.have_ssl);
3 COUNT(@@GLOBAL.have_ssl)
4 1
5 1 Expected
6 '#---------------------BS_STVARS_017_02----------------------#'
7 SET @@GLOBAL.have_ssl=1;
8 ERROR HY000: Variable 'have_ssl' is a read only variable
9 Expected error 'Read only variable'
10 SELECT COUNT(@@GLOBAL.have_ssl);
11 COUNT(@@GLOBAL.have_ssl)
12 1
13 1 Expected
14 '#---------------------BS_STVARS_017_03----------------------#'
15 SELECT @@GLOBAL.have_ssl = VARIABLE_VALUE
16 FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
17 WHERE VARIABLE_NAME='have_ssl';
18 @@GLOBAL.have_ssl = VARIABLE_VALUE
19 1
20 1 Expected
21 SELECT COUNT(@@GLOBAL.have_ssl);
22 COUNT(@@GLOBAL.have_ssl)
23 1
24 1 Expected
25 SELECT COUNT(VARIABLE_VALUE)
26 FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
27 WHERE VARIABLE_NAME='have_ssl';
28 COUNT(VARIABLE_VALUE)
29 1
30 1 Expected
31 '#---------------------BS_STVARS_017_04----------------------#'
32 SELECT @@have_ssl = @@GLOBAL.have_ssl;
33 @@have_ssl = @@GLOBAL.have_ssl
34 1
35 1 Expected
36 '#---------------------BS_STVARS_017_05----------------------#'
37 SELECT COUNT(@@have_ssl);
38 COUNT(@@have_ssl)
39 1
40 1 Expected
41 SELECT COUNT(@@local.have_ssl);
42 ERROR HY000: Variable 'have_ssl' is a GLOBAL variable
43 Expected error 'Variable is a GLOBAL variable'
44 SELECT COUNT(@@SESSION.have_ssl);
45 ERROR HY000: Variable 'have_ssl' is a GLOBAL variable
46 Expected error 'Variable is a GLOBAL variable'
47 SELECT COUNT(@@GLOBAL.have_ssl);
48 COUNT(@@GLOBAL.have_ssl)
49 1
50 1 Expected
51 SELECT have_ssl = @@SESSION.have_ssl;
52 ERROR 42S22: Unknown column 'have_ssl' in 'SELECT'
53 Expected error 'Readonly variable'