1
0
mirror of https://github.com/MariaDB/server.git synced 2025-05-05 16:59:35 +03:00
mariadb/mysql-test/suite/sys_vars/t/extra_port_basic.test
2011-04-25 17:22:25 +02:00

22 lines
567 B
Plaintext

# ulong readonly
#
# show the global and session values;
#
select @@global.extra_port;
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
select @@session.extra_port;
show global variables like 'extra_port';
show session variables like 'extra_port';
select * from information_schema.global_variables where variable_name='extra_port';
select * from information_schema.session_variables where variable_name='extra_port';
#
# show that it's read-only
#
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
set global extra_port=1;
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
set session extra_port=1;