Debian Codegraph @

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

raw
1
2 --echo #
3 --echo # Tests for WL#12086: Cryptographically signed SET statements
4 --echo #
5
6
7 --echo # Testing FR1 and FR1.5.
8 --echo # Must be empty
9 SELECT @@GLOBAL.persist_only_admin_x509_subject;
10 --error ER_INCORRECT_GLOBAL_LOCAL_VAR
11 SELECT @@SESSION.persist_only_admin_x509_subject;
12
13
14 --echo # Testing FR1.1.
15 --error ER_INCORRECT_GLOBAL_LOCAL_VAR
16 SET GLOBAL persist_only_admin_x509_subject = 'haha';
17 --error ER_INCORRECT_GLOBAL_LOCAL_VAR
18 SET SESSION persist_only_admin_x509_subject = 'haha';
19
20 --echo # Testing FR1.2.
21 SELECT CHARSET(@@global.persist_only_admin_x509_subject);
22
23 --echo # Testing FR1.4.
24 --error ER_INCORRECT_GLOBAL_LOCAL_VAR
25 SET PERSIST_ONLY persist_only_admin_x509_subject = 'persist_only';
26
27 --echo # Testing FR3
28
29 --echo # Must be empty
30 SELECT @@GLOBAL.persist_only_admin_x509_subject;
31 let $persist_only_admin_x509_subject_vars_result= ER_INCORRECT_GLOBAL_LOCAL_VAR;
32 source ../inc/persist_only_admin_x509_subject_vars.inc;