MOON
Server: Apache/2.2.34 (Unix) mod_ssl/2.2.34 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4 FrontPage/5.0.2.2635
System: Linux server.asjudinet.com 2.6.32-042stab141.3 #1 SMP Fri Nov 15 22:45:34 MSK 2019 i686
User: asjudine (504)
PHP: 5.2.17
Disabled: NONE
Upload Files
File: //usr/share/mysql-test/suite/innodb_plugin/t/innodb_bug47167.test
# This is the unit test for bug *47167.
# It tests setting the global variable
# "innodb_file_format_check" with a
# user-Defined Variable.

-- source include/have_innodb_plugin.inc

# Save the value (Antelope) in 'innodb_file_format_check' to
# 'old_innodb_file_format_check'
set @old_innodb_file_format_check=@@innodb_file_format_check;

# @old_innodb_file_format_check shall have the value of 'Antelope'
select @old_innodb_file_format_check;

# Reset the value in 'innodb_file_format_check' to 'Barracuda'
set global innodb_file_format_check = Barracuda;

select @@innodb_file_format_check;

# Set 'innodb_file_format_check' to its default value, which
# is the latest file format supported in the current release.
set global innodb_file_format_check = DEFAULT;

select @@innodb_file_format_check;

# Put the saved value back to 'innodb_file_format_check'
set global innodb_file_format_check = @old_innodb_file_format_check;

# Check whether 'innodb_file_format_check' get its original value.
select @@innodb_file_format_check;

# Following are negative tests, all should fail.
--disable_warnings
--error ER_WRONG_ARGUMENTS
set global innodb_file_format_check = cheetah;

--error ER_WRONG_ARGUMENTS
set global innodb_file_format_check = Bear;

--error ER_WRONG_ARGUMENTS
set global innodb_file_format_check = on;

--error ER_WRONG_ARGUMENTS
set global innodb_file_format_check = off;
--enable_warnings