mirror of
https://github.com/MariaDB/server.git
synced 2025-04-28 06:45:23 +03:00
The default storage engine is changed from MyISAM to InnoDB, in all builds except for the embedded server. In addition, the following system variables are changed: * innodb_file_per_table is enabled * innodb_strict_mode is enabled * innodb_file_format_name_update is changed to 'Barracuda' The test suite is changed so that tests that do not explicitly include the have_innodb.inc are run with --default-storage-engine=MyISAM. This is to ease the transition, so that most regression tests are run with the same engine as before. Some tests are disabled for the embedded server regression test, as the output of certain statements will be different that for the regular server (i.e SELECT @@default_storage_engine). This is to ease transition.
46 lines
1.4 KiB
Plaintext
46 lines
1.4 KiB
Plaintext
# This is the unit test for bug #47167.
|
|
# It tests setting the global variable "innodb_file_format_max" (
|
|
# originally "innodb_file_format_check") with a user-Defined Variable.
|
|
|
|
--source include/not_embedded.inc
|
|
--source include/have_innodb.inc
|
|
|
|
# Save the value (Antelope) in 'innodb_file_format_max' to
|
|
# 'old_innodb_file_format_max'
|
|
set @old_innodb_file_format_max=@@innodb_file_format_max;
|
|
|
|
# @old_innodb_file_format_max shall have the value of 'Antelope'
|
|
select @old_innodb_file_format_max;
|
|
|
|
# Reset the value in 'innodb_file_format_max' to 'Barracuda'
|
|
set global innodb_file_format_max = Barracuda;
|
|
|
|
select @@innodb_file_format_max;
|
|
|
|
# Set 'innodb_file_format_max' to its default value, which
|
|
# is the latest file format supported in the current release.
|
|
set global innodb_file_format_max = DEFAULT;
|
|
|
|
select @@innodb_file_format_max;
|
|
|
|
# Put the saved value back to 'innodb_file_format_max'
|
|
set global innodb_file_format_max = @old_innodb_file_format_max;
|
|
|
|
# Check whether 'innodb_file_format_max' get its original value.
|
|
select @@innodb_file_format_max;
|
|
|
|
# Following are negative tests, all should fail.
|
|
--disable_warnings
|
|
--error ER_WRONG_VALUE_FOR_VAR
|
|
set global innodb_file_format_max = cheetah;
|
|
|
|
--error ER_WRONG_VALUE_FOR_VAR
|
|
set global innodb_file_format_max = Bear;
|
|
|
|
--error ER_WRONG_VALUE_FOR_VAR
|
|
set global innodb_file_format_max = on;
|
|
|
|
--error ER_WRONG_VALUE_FOR_VAR
|
|
set global innodb_file_format_max = off;
|
|
--enable_warnings
|