Debian Codegraph @

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

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