Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Adjust storage_engine suite according to server changes in 10.2
- Loading branch information
Showing
35 changed files
with
338 additions
and
840 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| alter_table_online : MDEV-9705 - Field type conversion warnings have changed to worse | ||
| col_opt_null : MDEV-10252 - Row count in 'out of range' warnings is off | ||
| col_opt_not_null : MDEV-10252 - Row count in 'out of range' warnings is off | ||
| col_opt_unsigned : MDEV-10252 - Row count in 'out of range' warnings is off | ||
| col_opt_zerofill : MDEV-10252 - Row count in 'out of range' warnings is off | ||
| type_binary : MDEV-10252 - Row count in 'out of range' warnings is off | ||
| type_char : MDEV-10252 - Row count in 'out of range' warnings is off | ||
| type_fixed : MDEV-10252 - Row count in 'out of range' warnings is off | ||
| type_float : MDEV-10252 - Row count in 'out of range' warnings is off | ||
| type_int : MDEV-10252 - Row count in 'out of range' warnings is off | ||
| type_varbinary : MDEV-10252 - Row count in 'out of range' warnings is off | ||
| type_varchar : MDEV-10252 - Row count in 'out of range' warnings is off |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| # | ||
| # | ||
| # INSERT DELAYED | ||
| # | ||
|
|
||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,16 +1,19 @@ | ||
| DROP TABLE IF EXISTS t1; | ||
| # Running CREATE TABLE .. DATA DIRECTORY = <> | ||
| SHOW CREATE TABLE t1; | ||
| Table Create Table | ||
| t1 CREATE TABLE `t1` ( | ||
| `a` int(11) DEFAULT NULL, | ||
| `b` char(8) DEFAULT NULL | ||
| ) ENGINE=<STORAGE_ENGINE> DEFAULT CHARSET=latin1 DATA DIRECTORY='<DATA_DIR>' INDEX DIRECTORY='<INDEX_DIR>' | ||
| ) ENGINE=<STORAGE_ENGINE> DEFAULT CHARSET=latin1 DATA DIRECTORY='<DATA_DIR_1>' | ||
| # For ALTER TABLE the option is ignored | ||
| # Running ALTER TABLE .. DATA DIRECTORY = <> | ||
| Warnings: | ||
| Warning 1618 <INDEX DIRECTORY> option ignored | ||
| Warning 1618 <DATA DIRECTORY> option ignored | ||
| SHOW CREATE TABLE t1; | ||
| Table Create Table | ||
| t1 CREATE TABLE `t1` ( | ||
| `a` int(11) DEFAULT NULL, | ||
| `b` char(8) DEFAULT NULL | ||
| ) ENGINE=<STORAGE_ENGINE> DEFAULT CHARSET=latin1 DATA DIRECTORY='<DATA_DIR>' INDEX DIRECTORY='<INDEX_DIR>' | ||
| ) ENGINE=<STORAGE_ENGINE> DEFAULT CHARSET=latin1 DATA DIRECTORY='<DATA_DIR_1>' | ||
| DROP TABLE t1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,52 @@ | ||
| # | ||
| # Check whether DATA DIRECTORY is supported in CREATE and ALTER TABLE | ||
| # | ||
| # Note: the test does not check whether the option | ||
| # has any real effect on the table, only that it is accepted | ||
| # | ||
|
|
||
| --source include/have_symlink.inc | ||
| --source have_engine.inc | ||
|
|
||
| --let $data_dir1 = $MYSQLTEST_VARDIR/storage_engine_data_dir1/ | ||
| --let $data_dir2 = $MYSQLTEST_VARDIR/storage_engine_data_dir2/ | ||
| --mkdir $data_dir1 | ||
| --mkdir $data_dir2 | ||
|
|
||
| --disable_warnings | ||
| DROP TABLE IF EXISTS t1; | ||
| --enable_warnings | ||
|
|
||
| --let $table_options = DATA DIRECTORY = '$data_dir1' | ||
| # We cannot mask the folder name here and further, but we can switch off query logging | ||
| --let $disable_query_log = 1 | ||
| --echo # Running CREATE TABLE .. DATA DIRECTORY = <> | ||
| --source create_table.inc | ||
|
|
||
| --source mask_engine.inc | ||
| --replace_result $data_dir1 <DATA_DIR_1> | ||
| SHOW CREATE TABLE t1; | ||
|
|
||
| --echo # For ALTER TABLE the option is ignored | ||
|
|
||
| --let $alter_definition = DATA DIRECTORY = '$data_dir2' | ||
| --disable_query_log | ||
| --echo # Running ALTER TABLE .. DATA DIRECTORY = <> | ||
| --source alter_table.inc | ||
| if ($mysql_errname) | ||
| { | ||
| --let $my_last_stmt = $alter_statement | ||
| --let $functionality = ALTER TABLE | ||
| --source unexpected_result.inc | ||
| } | ||
| --enable_query_log | ||
| --source mask_engine.inc | ||
| --replace_result $data_dir1 <DATA_DIR_1> | ||
| SHOW CREATE TABLE t1; | ||
|
|
||
| DROP TABLE t1; | ||
|
|
||
| --source cleanup_engine.inc | ||
|
|
||
| --rmdir $data_dir1 | ||
| --rmdir $data_dir2 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| DROP TABLE IF EXISTS t1; | ||
| # Running CREATE TABLE .. INDEX DIRECTORY = <> | ||
| SHOW CREATE TABLE t1; | ||
| Table Create Table | ||
| t1 CREATE TABLE `t1` ( | ||
| `a` int(11) DEFAULT NULL, | ||
| `b` char(8) DEFAULT NULL | ||
| ) ENGINE=<STORAGE_ENGINE> DEFAULT CHARSET=latin1 INDEX DIRECTORY='<INDEX_DIR_1>' | ||
| # For ALTER TABLE the option is ignored | ||
| # Running ALTER TABLE .. INDEX DIRECTORY = <> | ||
| Warnings: | ||
| Warning 1618 <INDEX DIRECTORY> option ignored | ||
| SHOW CREATE TABLE t1; | ||
| Table Create Table | ||
| t1 CREATE TABLE `t1` ( | ||
| `a` int(11) DEFAULT NULL, | ||
| `b` char(8) DEFAULT NULL | ||
| ) ENGINE=<STORAGE_ENGINE> DEFAULT CHARSET=latin1 INDEX DIRECTORY='<INDEX_DIR_1>' | ||
| DROP TABLE t1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,52 @@ | ||
| # | ||
| # Check whether INDEX DIRECTORY is supported in CREATE and ALTER TABLE | ||
| # | ||
| # Note: the test does not check whether the option | ||
| # has any real effect on the table, only that it is accepted | ||
| # | ||
|
|
||
| --source include/have_symlink.inc | ||
| --source have_engine.inc | ||
|
|
||
| --let $index_dir1 = $MYSQLTEST_VARDIR/storage_engine_index_dir1/ | ||
| --let $index_dir2 = $MYSQLTEST_VARDIR/storage_engine_index_dir2/ | ||
| --mkdir $index_dir1 | ||
| --mkdir $index_dir2 | ||
|
|
||
| --disable_warnings | ||
| DROP TABLE IF EXISTS t1; | ||
| --enable_warnings | ||
|
|
||
| --let $table_options = INDEX DIRECTORY = '$index_dir1' | ||
| # We cannot mask the folder name here and further, but we can switch off query logging | ||
| --let $disable_query_log = 1 | ||
| --echo # Running CREATE TABLE .. INDEX DIRECTORY = <> | ||
| --source create_table.inc | ||
|
|
||
| --source mask_engine.inc | ||
| --replace_result $index_dir1 <INDEX_DIR_1> | ||
| SHOW CREATE TABLE t1; | ||
|
|
||
| --echo # For ALTER TABLE the option is ignored | ||
|
|
||
| --let $alter_definition = INDEX DIRECTORY = '$index_dir2' | ||
| --disable_query_log | ||
| --echo # Running ALTER TABLE .. INDEX DIRECTORY = <> | ||
| --source alter_table.inc | ||
| if ($mysql_errname) | ||
| { | ||
| --let $my_last_stmt = $alter_statement | ||
| --let $functionality = ALTER TABLE | ||
| --source unexpected_result.inc | ||
| } | ||
| --enable_query_log | ||
| --source mask_engine.inc | ||
| --replace_result $index_dir1 <INDEX_DIR_1> | ||
| SHOW CREATE TABLE t1; | ||
|
|
||
| DROP TABLE t1; | ||
|
|
||
| --source cleanup_engine.inc | ||
|
|
||
| --rmdir $index_dir1 | ||
| --rmdir $index_dir2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,16 +1,30 @@ | ||
| DROP TABLE IF EXISTS t1; | ||
| CREATE TABLE t1 (a <INT_COLUMN>, b <CHAR_COLUMN>) ENGINE=<STORAGE_ENGINE> <CUSTOM_TABLE_OPTIONS> ROW_FORMAT=FIXED; | ||
| CREATE TABLE t1 (a <INT_COLUMN>, b <CHAR_COLUMN>) ENGINE=<STORAGE_ENGINE> <CUSTOM_TABLE_OPTIONS> ROW_FORMAT=DYNAMIC; | ||
| SHOW CREATE TABLE t1; | ||
| Table Create Table | ||
| t1 CREATE TABLE `t1` ( | ||
| `a` int(11) DEFAULT NULL, | ||
| `b` char(8) DEFAULT NULL | ||
| ) ENGINE=<STORAGE_ENGINE> DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC | ||
| ALTER TABLE t1 ROW_FORMAT=FIXED; | ||
| SHOW CREATE TABLE t1; | ||
| Table Create Table | ||
| t1 CREATE TABLE `t1` ( | ||
| `a` int(11) DEFAULT NULL, | ||
| `b` char(8) DEFAULT NULL | ||
| ) ENGINE=<STORAGE_ENGINE> DEFAULT CHARSET=latin1 ROW_FORMAT=FIXED | ||
| ALTER TABLE t1 ROW_FORMAT=DYNAMIC; | ||
| ALTER TABLE t1 ROW_FORMAT=PAGE; | ||
| SHOW CREATE TABLE t1; | ||
| Table Create Table | ||
| t1 CREATE TABLE `t1` ( | ||
| `a` int(11) DEFAULT NULL, | ||
| `b` char(8) DEFAULT NULL | ||
| ) ENGINE=<STORAGE_ENGINE> DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC | ||
| ) ENGINE=<STORAGE_ENGINE> DEFAULT CHARSET=latin1 ROW_FORMAT=PAGE | ||
| ALTER TABLE t1 ROW_FORMAT=COMPACT; | ||
| SHOW CREATE TABLE t1; | ||
| Table Create Table | ||
| t1 CREATE TABLE `t1` ( | ||
| `a` int(11) DEFAULT NULL, | ||
| `b` char(8) DEFAULT NULL | ||
| ) ENGINE=<STORAGE_ENGINE> DEFAULT CHARSET=latin1 ROW_FORMAT=COMPACT | ||
| DROP TABLE t1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.