Spracherkennung für: .test vermutete Sprache: SQL {SQL[68] VHDL[68] ABAP[40]} [Methode: maximale Elemente, drei Dimensionen]
#
# only global
#
--replace_result $MASTER_MYPORT MASTER_MYPORT
select @@global.port;
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
select @@session.port;
--replace_result $MASTER_MYPORT MASTER_MYPORT
show global variables like 'port';
--replace_result $MASTER_MYPORT MASTER_MYPORT
show session variables like 'port';
--replace_result $MASTER_MYPORT MASTER_MYPORT
select * from information_schema.global_variables where variable_name='port';
--replace_result $MASTER_MYPORT MASTER_MYPORT
select * from information_schema.session_variables where variable_name='port';
#
# show that it's read-only
#
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
set global port=1;
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
set session port=1;
[Dauer der Verarbeitung: 0.8 Sekunden]