polardbxengine/mysql-test/suite/sys_vars/t/log_error_basic.test

21 lines
553 B
Plaintext

#
# only global
#
select @@global.log_error;
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
select @@session.log_error;
show global variables like 'log_error';
show session variables like 'log_error';
--disable_warnings
select * from performance_schema.global_variables where variable_name='log_error';
select * from performance_schema.session_variables where variable_name='log_error';
--enable_warnings
#
# show that it's read-only
#
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
set global log_error=1;
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
set session log_error=1;