Debian Codegraph @

mysql-test/suite/sys_vars/t/mysqlx_ssl_ca_basic.test

raw
1 # Variable Name: mysqlx_ssl_ca #
2 # Scope: Global #
3 # Access Type: Static #
4 # Data Type: filename #
5 # #
6
7
8 ####################################################################
9 # Displaying default value #
10 ####################################################################
11 SELECT COUNT(@@GLOBAL.mysqlx_ssl_ca);
12
13 ####################################################################
14 # Check if Value can set #
15 ####################################################################
16
17 --error ER_INCORRECT_GLOBAL_LOCAL_VAR
18 SET @@GLOBAL.mysqlx_ssl_ca=1;
19 --echo Expected error 'Read only variable'
20
21 SELECT COUNT(@@GLOBAL.mysqlx_ssl_ca);
22 #################################################################
23 # Check if the value in GLOBAL Table matches value in variable #
24 #################################################################
25
26 --disable_warnings
27 SELECT @@GLOBAL.mysqlx_ssl_ca = VARIABLE_VALUE
28 FROM performance_schema.global_variables
29 WHERE VARIABLE_NAME='mysqlx_ssl_ca';
30 --enable_warnings
31
32 SELECT COUNT(@@GLOBAL.mysqlx_ssl_ca);
33
34 --disable_warnings
35 SELECT COUNT(VARIABLE_VALUE)
36 FROM performance_schema.global_variables
37 WHERE VARIABLE_NAME='mysqlx_ssl_ca';
38 --enable_warnings
39 ################################################################################
40 # Check if accessing variable with and without GLOBAL point to same variable #
41 ################################################################################
42 SELECT @@mysqlx_ssl_ca = @@GLOBAL.mysqlx_ssl_ca;
43
44 ################################################################################
45 # Check if mysqlx_ssl_ca can be accessed with and without @@ sign #
46 ################################################################################
47
48 SELECT COUNT(@@mysqlx_ssl_ca);
49
50 --Error ER_INCORRECT_GLOBAL_LOCAL_VAR
51 SELECT COUNT(@@local.mysqlx_ssl_ca);
52 --echo Expected error 'Variable is a GLOBAL variable'
53
54 --Error ER_INCORRECT_GLOBAL_LOCAL_VAR
55 SELECT COUNT(@@SESSION.mysqlx_ssl_ca);
56 --echo Expected error 'Variable is a GLOBAL variable'
57
58 SELECT COUNT(@@GLOBAL.mysqlx_ssl_ca);
59
60 --Error ER_BAD_FIELD_ERROR
61 SELECT mysqlx_ssl_ca;
62 --echo Expected error 'Unknown column'
63
64