Debian Codegraph @

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

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