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_offset_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_offset;
SET @@global.optimizer_trace_offset=5;
show global variables like 'optimizer_trace_offset';
--disable_warnings
select * from information_schema.global_variables where variable_name='optimizer_trace_offset';
--enable_warnings

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

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

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

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

# 32-bit big values should be accepted on all platforms
set session optimizer_trace_offset=2000000000;
select @@session.optimizer_trace_offset;
show session variables like 'optimizer_trace_offset';

set session optimizer_trace_offset=-2000000000;
select @@session.optimizer_trace_offset;
show session variables like 'optimizer_trace_offset';

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

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

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

Man Man