summaryrefslogtreecommitdiff
path: root/mysql-test/suite/sys_vars/t/have_profiling_basic.test
blob: da0ca88d2e30264bcb06d262343ef5f71d1ef788 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#
# only global
#
select @@global.have_profiling="1";
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
select @@session.have_profiling;
--replace_column 2 #
show global variables like 'have_profiling';
--replace_column 2 #
show session variables like 'have_profiling';
--replace_column 2 #
select * from information_schema.global_variables where variable_name='have_profiling';
--replace_column 2 #
select * from information_schema.session_variables where variable_name='have_profiling';

#
# show that it's read-only
#
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
set global have_profiling=1;
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
set session have_profiling=1;