mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Modified and added tests following review of WL#4738.
- Added tests for innodb and semisync plugin - Modified existing tests to include variable values in I_S tables - Updated the all_vars test to include optional checkes for INNODB and semisync plugin if loaded
This commit is contained in:
28
mysql-test/suite/sys_vars/t/innodb_version_basic.test
Normal file
28
mysql-test/suite/sys_vars/t/innodb_version_basic.test
Normal file
@ -0,0 +1,28 @@
|
||||
|
||||
#
|
||||
# 2010-01-27 OBN - Added
|
||||
#
|
||||
|
||||
--source include/have_innodb.inc
|
||||
|
||||
#
|
||||
# show the global and session values;
|
||||
#
|
||||
--let $inno_ver= `select @@global.innodb_version`
|
||||
--replace_result $inno_ver x.y.z
|
||||
select @@global.innodb_version;
|
||||
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
|
||||
select @@session.innodb_version;
|
||||
--echo show global variables like 'innodb_version' disabled so to not change with every version;
|
||||
--echo show session variables like 'innodb_version' disabled so to not change with every version;
|
||||
select VARIABLE_VALUE=@@global.innodb_version from information_schema.global_variables where variable_name='innodb_version';
|
||||
select VARIABLE_VALUE=@@global.innodb_version from information_schema.session_variables where variable_name='innodb_version';
|
||||
|
||||
#
|
||||
# show that it's read-only
|
||||
#
|
||||
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
|
||||
set global innodb_version=1;
|
||||
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
|
||||
set session innodb_version=1;
|
||||
|
Reference in New Issue
Block a user