
#
#  2014-03-26 - Added
#

--source include/have_innodb.inc

#
# show the global and session values;
#
select @@global.innodb_fill_factor;
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
select @@session.innodb_fill_factor;
show global variables like 'innodb_fill_factor';
show session variables like 'innodb_fill_factor';
--disable_warnings
select * from information_schema.global_variables where variable_name='innodb_fill_factor';
select * from information_schema.session_variables where variable_name='innodb_fill_factor';
--enable_warnings

#
# test default, min, max value
#
let $innodb_fill_factor_orig=`select @@innodb_fill_factor`;

set global innodb_fill_factor=9;
select @@innodb_fill_factor;

set global innodb_fill_factor=10;
select @@innodb_fill_factor;

set global innodb_fill_factor=75;
select @@innodb_fill_factor;

set global innodb_fill_factor=100;
select @@innodb_fill_factor;

set global innodb_fill_factor=101;
select @@innodb_fill_factor;

eval set global innodb_fill_factor=$innodb_fill_factor_orig;
