mirror of
https://github.com/MariaDB/server.git
synced 2025-12-03 05:41:09 +03:00
This changeset belongs to
WL#3397 Refactoring storage engine test cases (for falcon)
It contains fixes according to second code review.
- Remove any occurence of hardcoded assignments of storage engines
- Use variable names exact telling what it is used for
- Updated comments
- remove trailing spaces
mysql-test/include/handler.inc:
- Replace hardcoded MyISAM with assignments via variable
mysql-test/include/mix1.inc:
- Replace hardcoded MyISAM with assignments via variable
- Remove hardcoded InnoDB assignments (They were introduced by late push)
- Remove trailing spaces
mysql-test/include/mix2.inc:
- Replace hardcode MyISAM assignments
- Remove trailing spaces
- Engine assignments via variable refers to the use of the storage engine
$other_non_trans_engine_type, $other_live_chcks_engine_type ...
mysql-test/include/read_many_rows.inc:
Replace hardcoded MyISAM assignment
mysql-test/include/rowid_order.inc:
remove trailing spaces
mysql-test/r/handler_innodb.result:
Updated result
mysql-test/r/handler_myisam.result:
Updated result
mysql-test/r/innodb_mysql.result:
Updated result
mysql-test/r/mix2_myisam.result:
Updated result
mysql-test/r/read_many_rows_innodb.result:
Updated result
mysql-test/r/rowid_order_innodb.result:
Updated result
mysql-test/t/handler_innodb.test:
Introduce $variables
mysql-test/t/handler_myisam.test:
Introduce $variables
mysql-test/t/mix2_myisam.test:
Introduce $variables
mysql-test/t/read_many_rows_innodb.test:
Introduce $variables
This commit is contained in:
@@ -1,8 +1,14 @@
|
||||
# include/handler.inc
|
||||
#
|
||||
# The variable
|
||||
# The variables
|
||||
# $engine_type -- storage engine to be tested
|
||||
# has to be set before sourcing this script.
|
||||
# $other_engine_type -- storage engine <> $engine_type
|
||||
# $other_handler_engine_type -- storage engine <> $engine_type, if possible
|
||||
# 1. $other_handler_engine_type must support handler
|
||||
# 2. $other_handler_engine_type must point to an all
|
||||
# time available storage engine
|
||||
# 2006-08 MySQL 5.1 MyISAM and MEMORY only
|
||||
# have to be set before sourcing this script.
|
||||
#
|
||||
# test of HANDLER ...
|
||||
#
|
||||
@@ -108,7 +114,7 @@ insert into t1 values (17);
|
||||
--error 1109
|
||||
handler t2 read first;
|
||||
handler t1 open as t2;
|
||||
alter table t1 engine=MyISAM;
|
||||
eval alter table t1 engine=$other_engine_type;
|
||||
--error 1109
|
||||
handler t2 read first;
|
||||
drop table t1;
|
||||
@@ -327,7 +333,7 @@ insert into t5 values ("t5");
|
||||
handler t5 open as h5;
|
||||
handler h5 read first limit 9;
|
||||
# close first
|
||||
alter table t1 engine=MyISAM;
|
||||
eval alter table t1 engine=$other_handler_engine_type;
|
||||
--error 1109
|
||||
handler h1 read first limit 9;
|
||||
handler h2 read first limit 9;
|
||||
@@ -335,7 +341,7 @@ handler h3 read first limit 9;
|
||||
handler h4 read first limit 9;
|
||||
handler h5 read first limit 9;
|
||||
# close last
|
||||
alter table t5 engine=MyISAM;
|
||||
eval alter table t5 engine=$other_handler_engine_type;
|
||||
--error 1109
|
||||
handler h1 read first limit 9;
|
||||
handler h2 read first limit 9;
|
||||
@@ -344,7 +350,7 @@ handler h4 read first limit 9;
|
||||
--error 1109
|
||||
handler h5 read first limit 9;
|
||||
# close middle
|
||||
alter table t3 engine=MyISAM;
|
||||
eval alter table t3 engine=$other_handler_engine_type;
|
||||
--error 1109
|
||||
handler h1 read first limit 9;
|
||||
handler h2 read first limit 9;
|
||||
@@ -362,7 +368,7 @@ handler t1 open as h1_3;
|
||||
handler h1_1 read first limit 9;
|
||||
handler h1_2 read first limit 9;
|
||||
handler h1_3 read first limit 9;
|
||||
alter table t1 engine=MyISAM;
|
||||
eval alter table t1 engine=$engine_type;
|
||||
--error 1109
|
||||
handler h1_1 read first limit 9;
|
||||
--error 1109
|
||||
|
||||
Reference in New Issue
Block a user