summaryrefslogtreecommitdiff
path: root/mysql-test/suite/sys_vars/t/protocol_version_basic.test
blob: 3446932b7e1abe4eae7c7c56fe6c8c58c98ce722 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#
# 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;