| 1 |
# |
| 2 |
# Tests for mysqlbinlog and rewrite filter |
| 3 |
# |
| 4 |
--source include/have_binlog_format_mixed.inc |
| 5 |
|
| 6 |
--let $datadir= `SELECT @@datadir` |
| 7 |
|
| 8 |
# |
| 9 |
# BUG#18345363: ORDER OF APPLYING MYSQLBINLOG --DATABASE AND --REWRITE-DB IS WRONG |
| 10 |
# BUG#20810442: "USE DATABSE_NAME" STATEMENTS OMITTED BY MYSQLBINLOG --REWRITE-DB OPTION |
| 11 |
# |
| 12 |
|
| 13 |
call mtr.add_suppression("WARNING: The option --database has been used. It may filter parts of transactions,"); |
| 14 |
|
| 15 |
--let $saved_binlog_format=`SELECT @@binlog_format` |
| 16 |
|
| 17 |
# new db name is smaller than the original one |
| 18 |
--let $rewrite_from_db=schemaa |
| 19 |
--let $rewrite_to_db=db1 |
| 20 |
--source extra/binlog_tests/mysqlbinlog_rewrite_db.test |
| 21 |
|
| 22 |
# new db name is the same size as the original one |
| 23 |
--let $rewrite_from_db=schemaa |
| 24 |
--let $rewrite_to_db=schemab |
| 25 |
--source extra/binlog_tests/mysqlbinlog_rewrite_db.test |
| 26 |
|
| 27 |
# new db name is the larger than the original one |
| 28 |
--let $rewrite_from_db=schemaa |
| 29 |
--let $rewrite_to_db=my_new_fancy_and_very_long_schema_name |
| 30 |
--source extra/binlog_tests/mysqlbinlog_rewrite_db.test |
| 31 |
|
| 32 |
--let $rewrite_from_db= |
| 33 |
--let $rewrite_to_db= |
| 34 |
|
| 35 |
--eval SET BINLOG_FORMAT=$saved_binlog_format |
| 36 |
|
| 37 |
--remove_files_wildcard $MYSQL_TMP_DIR/ SQL_LOAD_MB* |