Commit d364e64a authored by Sergei Golubchik's avatar Sergei Golubchik

add missing tests

parent aa4c7dea
select @@global.innodb_use_atomic_writes;
@@global.innodb_use_atomic_writes
0
select @@session.innodb_use_atomic_writes;
ERROR HY000: Variable 'innodb_use_atomic_writes' is a GLOBAL variable
show global variables like 'innodb_use_atomic_writes';
Variable_name Value
innodb_use_atomic_writes OFF
show session variables like 'innodb_use_atomic_writes';
Variable_name Value
innodb_use_atomic_writes OFF
select * from information_schema.global_variables where variable_name='innodb_use_atomic_writes';
VARIABLE_NAME VARIABLE_VALUE
INNODB_USE_ATOMIC_WRITES OFF
select * from information_schema.session_variables where variable_name='innodb_use_atomic_writes';
VARIABLE_NAME VARIABLE_VALUE
INNODB_USE_ATOMIC_WRITES OFF
set global innodb_use_atomic_writes=1;
ERROR HY000: Variable 'innodb_use_atomic_writes' is a read only variable
set session innodb_use_atomic_writes=1;
ERROR HY000: Variable 'innodb_use_atomic_writes' is a read only variable
select @@global.innodb_use_fallocate;
@@global.innodb_use_fallocate
1
select @@session.innodb_use_fallocate;
ERROR HY000: Variable 'innodb_use_fallocate' is a GLOBAL variable
show global variables like 'innodb_use_fallocate';
Variable_name Value
innodb_use_fallocate ON
show session variables like 'innodb_use_fallocate';
Variable_name Value
innodb_use_fallocate ON
select * from information_schema.global_variables where variable_name='innodb_use_fallocate';
VARIABLE_NAME VARIABLE_VALUE
INNODB_USE_FALLOCATE ON
select * from information_schema.session_variables where variable_name='innodb_use_fallocate';
VARIABLE_NAME VARIABLE_VALUE
INNODB_USE_FALLOCATE ON
set global innodb_use_fallocate=1;
ERROR HY000: Variable 'innodb_use_fallocate' is a read only variable
set session innodb_use_fallocate=1;
ERROR HY000: Variable 'innodb_use_fallocate' is a read only variable
--source include/have_innodb.inc
# bool readonly
#
# show values;
#
select @@global.innodb_use_atomic_writes;
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
select @@session.innodb_use_atomic_writes;
show global variables like 'innodb_use_atomic_writes';
show session variables like 'innodb_use_atomic_writes';
select * from information_schema.global_variables where variable_name='innodb_use_atomic_writes';
select * from information_schema.session_variables where variable_name='innodb_use_atomic_writes';
#
# show that it's read-only
#
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
set global innodb_use_atomic_writes=1;
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
set session innodb_use_atomic_writes=1;
--source include/have_innodb.inc
# bool readonly
#
# show values;
#
select @@global.innodb_use_fallocate;
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
select @@session.innodb_use_fallocate;
show global variables like 'innodb_use_fallocate';
show session variables like 'innodb_use_fallocate';
select * from information_schema.global_variables where variable_name='innodb_use_fallocate';
select * from information_schema.session_variables where variable_name='innodb_use_fallocate';
#
# show that it's read-only
#
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
set global innodb_use_fallocate=1;
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
set session innodb_use_fallocate=1;
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment