config root man

Current Path : /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 : //usr/opt/mysql57/mysql-test/suite/sys_vars/t/old_alter_table_basic.test

#
# 2010-01-20 OBN - added check of I_S values after variable value changed
#

SET @start_global_value = @@global.old_alter_table;
SELECT @start_global_value;

#
# exists as global and session
#
select @@global.old_alter_table;
select @@session.old_alter_table;
show global variables like 'old_alter_table';
show session variables like 'old_alter_table';
--disable_warnings
select * from information_schema.global_variables where variable_name='old_alter_table';
select * from information_schema.session_variables where variable_name='old_alter_table';
--enable_warnings

#
# show that it's writable
#
set global old_alter_table=1;
set session old_alter_table=ON;
select @@global.old_alter_table;
select @@session.old_alter_table;
show global variables like 'old_alter_table';
show session variables like 'old_alter_table';
--disable_warnings
select * from information_schema.global_variables where variable_name='old_alter_table';
select * from information_schema.session_variables where variable_name='old_alter_table';
--enable_warnings

#
# Display the default value 
#

SET @@global.old_alter_table=DEFAULT;
SELECT @@global.old_alter_table;

SET @@session.old_alter_table=DEFAULT;
SELECT  @@session.old_alter_table;

#
# incorrect types
#
--error ER_WRONG_TYPE_FOR_VAR
set global old_alter_table=1.1;
--error ER_WRONG_TYPE_FOR_VAR
set global old_alter_table=1e1;
--error ER_WRONG_VALUE_FOR_VAR
set global old_alter_table="foo";

SET @@global.old_alter_table = @start_global_value;
SELECT @@global.old_alter_table;

Man Man