config root man

Current Path : /home/usr.opt/mysql57/mysql-test/suite/sys_vars/t/

FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64
Upload File :
Current File : /home/usr.opt/mysql57/mysql-test/suite/sys_vars/t/optimizer_trace_limit_basic.test

--source include/have_optimizer_trace.inc

# Basic read/write test.
# Functionality of this variable is covered in
# main.optimizer_trace*.test

SELECT @@global.optimizer_trace_limit;
SET @@global.optimizer_trace_limit=5;
show global variables like 'optimizer_trace_limit';
--disable_warnings
select * from information_schema.global_variables where variable_name='optimizer_trace_limit';
--enable_warnings

select @@session.optimizer_trace_limit;
show session variables like 'optimizer_trace_limit';
--disable_warnings
select * from information_schema.session_variables where variable_name='optimizer_trace_limit';
--enable_warnings

#
# show that it's writable
#
set session optimizer_trace_limit=10;
select @@session.optimizer_trace_limit;
show session variables like 'optimizer_trace_limit';

set session optimizer_trace_limit=0;
select @@session.optimizer_trace_limit;
show session variables like 'optimizer_trace_limit';

set session optimizer_trace_limit=-100;
select @@session.optimizer_trace_limit;
show session variables like 'optimizer_trace_limit';

set session optimizer_trace_limit=default;
select @@session.optimizer_trace_limit;
show session variables like 'optimizer_trace_limit';

set global optimizer_trace_limit=default;
select @@global.optimizer_trace_limit;
show global variables like 'optimizer_trace_limit';

#
# incorrect assignments
#
--error ER_WRONG_TYPE_FOR_VAR
set optimizer_trace_limit=1.1;
--error ER_WRONG_TYPE_FOR_VAR
set optimizer_trace_limit="foobar";

Man Man