Debian Codegraph @

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

raw
1 #
2 # only global
3 #
4 --replace_regex s/[0-9]+/DEFAULT_MASTER_PORT/
5 select @@global.report_port;
6 --error ER_INCORRECT_GLOBAL_LOCAL_VAR
7 select @@session.report_port;
8 --replace_column 2 'DEFAULT_MASTER_PORT'
9 show global variables like 'report_port';
10 --replace_column 2 'DEFAULT_MASTER_PORT'
11 show session variables like 'report_port';
12 --disable_warnings
13 --replace_column 2 'DEFAULT_MASTER_PORT'
14 select * from performance_schema.global_variables where variable_name='report_port';
15 --replace_column 2 'DEFAULT_MASTER_PORT'
16 select * from performance_schema.session_variables where variable_name='report_port';
17 --replace_column 2 'DEFAULT_MASTER_PORT'
18 --enable_warnings
19
20 #
21 # show that it's read-only
22 #
23 --error ER_INCORRECT_GLOBAL_LOCAL_VAR
24 set global report_port=1;
25 --error ER_INCORRECT_GLOBAL_LOCAL_VAR
26 set session report_port=1;