| 1 |
# Include file to to test failure with error injection. |
| 2 |
# To be used with WL#4445: EXCHANGE PARTITION WITH TABLE. |
| 3 |
--eval $create_statement2 |
| 4 |
--eval $insert_statement2 |
| 5 |
SHOW CREATE TABLE t2; |
| 6 |
--sorted_result |
| 7 |
SELECT * FROM t2; |
| 8 |
--eval $create_statement |
| 9 |
--eval $insert_statement |
| 10 |
--echo # State before failure |
| 11 |
--replace_result #p# #P# |
| 12 |
--list_files $DATADIR/test |
| 13 |
SHOW CREATE TABLE `t1/a\b#2`; |
| 14 |
--sorted_result |
| 15 |
SELECT * FROM `t1/a\b#2`; |
| 16 |
# accept all errors |
| 17 |
--disable_abort_on_error |
| 18 |
--replace_regex /#sqlx-[0-9a-f_]*/#sqlx-nnnn_nnnn/i |
| 19 |
--eval $fail_statement |
| 20 |
--enable_abort_on_error |
| 21 |
--echo # State after failure |
| 22 |
--replace_result #p# #P# |
| 23 |
--list_files $DATADIR/test |
| 24 |
SHOW CREATE TABLE `t1/a\b#2`; |
| 25 |
--sorted_result |
| 26 |
SELECT * FROM `t1/a\b#2`; |
| 27 |
DROP TABLE `t1/a\b#2`; |
| 28 |
SHOW CREATE TABLE t2; |
| 29 |
--sorted_result |
| 30 |
SELECT * FROM t2; |
| 31 |
DROP TABLE t2; |