mirror of
https://github.com/MariaDB/server.git
synced 2025-01-31 11:01:52 +01:00
19 lines
572 B
Text
19 lines
572 B
Text
|
#
|
||
|
# only global
|
||
|
#
|
||
|
select @@global.protocol_version;
|
||
|
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
|
||
|
select @@session.protocol_version;
|
||
|
show global variables like 'protocol_version';
|
||
|
show session variables like 'protocol_version';
|
||
|
select * from information_schema.global_variables where variable_name='protocol_version';
|
||
|
select * from information_schema.session_variables where variable_name='protocol_version';
|
||
|
|
||
|
#
|
||
|
# show that it's read-only
|
||
|
#
|
||
|
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
|
||
|
set global protocol_version=1;
|
||
|
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
|
||
|
set session protocol_version=1;
|