Debian Codegraph @

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

raw
1 --echo '#---------------------BS_STVARS_048_01----------------------#'
2 ####################################################################
3 # Displaying default value #
4 ####################################################################
5 SELECT COUNT(@@GLOBAL.admin_ssl_cipher);
6 --echo 0 Expected
7
8
9 --echo '#---------------------BS_STVARS_048_02----------------------#'
10 ####################################################################
11 # Check if Value can set #
12 ####################################################################
13
14 --error ER_WRONG_TYPE_FOR_VAR
15 SET @@GLOBAL.admin_ssl_cipher=1;
16 --echo Expected error 'Read only variable'
17
18 SELECT COUNT(@@GLOBAL.admin_ssl_cipher);
19 --echo 0 Expected
20
21
22
23
24 --echo '#---------------------BS_STVARS_048_03----------------------#'
25 #################################################################
26 # Check if the value in GLOBAL Table matches value in variable #
27 #################################################################
28
29 --disable_warnings
30 SELECT @@GLOBAL.admin_ssl_cipher = VARIABLE_VALUE
31 FROM performance_schema.global_variables
32 WHERE VARIABLE_NAME='admin_ssl_cipher';
33 --enable_warnings
34 --echo NULL Expected
35
36 SELECT COUNT(@@GLOBAL.admin_ssl_cipher);
37 --echo 0 Expected
38
39 --disable_warnings
40 SELECT COUNT(VARIABLE_VALUE)
41 FROM performance_schema.global_variables
42 WHERE VARIABLE_NAME='admin_ssl_cipher';
43 --enable_warnings
44 --echo 1 Expected
45
46
47
48 --echo '#---------------------BS_STVARS_048_04----------------------#'
49 ################################################################################
50 # Check if accessing variable with and without GLOBAL point to same variable #
51 ################################################################################
52 SELECT @@admin_ssl_cipher = @@GLOBAL.admin_ssl_cipher;
53 --echo NULL Expected
54
55
56
57 --echo '#---------------------BS_STVARS_048_05----------------------#'
58 ################################################################################
59 # Check if admin_ssl_cipher can be accessed with and without @@ sign #
60 ################################################################################
61
62 SELECT COUNT(@@admin_ssl_cipher);
63 --echo 0 Expected
64
65 --Error ER_INCORRECT_GLOBAL_LOCAL_VAR
66 SELECT COUNT(@@local.admin_ssl_cipher);
67 --echo Expected error 'Variable is a GLOBAL variable'
68
69 --Error ER_INCORRECT_GLOBAL_LOCAL_VAR
70 SELECT COUNT(@@SESSION.admin_ssl_cipher);
71 --echo Expected error 'Variable is a GLOBAL variable'
72
73 SELECT COUNT(@@GLOBAL.admin_ssl_cipher);
74 --echo 0 Expected
75
76 --Error ER_BAD_FIELD_ERROR
77 SELECT admin_ssl_cipher;
78 --echo Expected error 'Unknown column'
79