config root man

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

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/r/optimizer_trace_offset_basic.result

SELECT @@global.optimizer_trace_offset;
@@global.optimizer_trace_offset
-1
SET @@global.optimizer_trace_offset=5;
show global variables like 'optimizer_trace_offset';
Variable_name	Value
optimizer_trace_offset	5
select * from information_schema.global_variables where variable_name='optimizer_trace_offset';
VARIABLE_NAME	VARIABLE_VALUE
OPTIMIZER_TRACE_OFFSET	5
select @@session.optimizer_trace_offset;
@@session.optimizer_trace_offset
-1
show session variables like 'optimizer_trace_offset';
Variable_name	Value
optimizer_trace_offset	-1
select * from information_schema.session_variables where variable_name='optimizer_trace_offset';
VARIABLE_NAME	VARIABLE_VALUE
OPTIMIZER_TRACE_OFFSET	-1
set session optimizer_trace_offset=10;
select @@session.optimizer_trace_offset;
@@session.optimizer_trace_offset
10
show session variables like 'optimizer_trace_offset';
Variable_name	Value
optimizer_trace_offset	10
set session optimizer_trace_offset=0;
select @@session.optimizer_trace_offset;
@@session.optimizer_trace_offset
0
show session variables like 'optimizer_trace_offset';
Variable_name	Value
optimizer_trace_offset	0
set session optimizer_trace_offset=-100;
select @@session.optimizer_trace_offset;
@@session.optimizer_trace_offset
-100
show session variables like 'optimizer_trace_offset';
Variable_name	Value
optimizer_trace_offset	-100
set session optimizer_trace_offset=2000000000;
select @@session.optimizer_trace_offset;
@@session.optimizer_trace_offset
2000000000
show session variables like 'optimizer_trace_offset';
Variable_name	Value
optimizer_trace_offset	2000000000
set session optimizer_trace_offset=-2000000000;
select @@session.optimizer_trace_offset;
@@session.optimizer_trace_offset
-2000000000
show session variables like 'optimizer_trace_offset';
Variable_name	Value
optimizer_trace_offset	-2000000000
set session optimizer_trace_offset=default;
select @@session.optimizer_trace_offset;
@@session.optimizer_trace_offset
5
show session variables like 'optimizer_trace_offset';
Variable_name	Value
optimizer_trace_offset	5
set global optimizer_trace_offset=default;
select @@global.optimizer_trace_offset;
@@global.optimizer_trace_offset
-1
show global variables like 'optimizer_trace_offset';
Variable_name	Value
optimizer_trace_offset	-1
set optimizer_trace_offset=1.1;
ERROR 42000: Incorrect argument type to variable 'optimizer_trace_offset'
set optimizer_trace_offset="foobar";
ERROR 42000: Incorrect argument type to variable 'optimizer_trace_offset'

Man Man