#
# 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;

