You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: mysql-test/suite/binlog/r/binlog_mysqlbinlog_rewrite_db.result
+7
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,7 @@ DELETE FROM t1 WHERE i=2;
11
11
[Syntax error in the use of the new option: The to database name is missing]
12
12
[VALID SYNTAX,The from->to database names is correctly mentioned]
13
13
[VALID SYNTAX read from remote server ,The from->to database names are correctly mentioned]
14
+
[VALID SYNTAX read from remote server in raw mode, the from->to database names are correctly mentioned]
14
15
[VALID SYNTAX, but during the application of rewrite_db filter an invalid event is found. Hence mysqlbinlog tool should exit with an appropriate error]
15
16
[ERROR: Got fatal error while applying rewrite db filter.]
16
17
#Dropping the database db1 and creating the table in the new database new_db1.
@@ -29,6 +30,12 @@ CREATE DATABASE new_db1;
29
30
RESET MASTER;
30
31
[The event of table db1.t1 has been successfully applied to new_db1.t1]
31
32
include/assert.inc [Assert that table new_db1.t1 has one row after applying the sql file.]
33
+
DROP DATABASE db1;
34
+
DROP DATABASE new_db1;
35
+
CREATE DATABASE new_db1;
36
+
RESET MASTER;
37
+
[The event of table db1.t1 has been successfully applied to new_db1.t1 from raw mode]
38
+
include/assert.inc [Assert that table new_db1.t1 has one row after applying the sql file from raw binlog dump.]
--echo [VALID SYNTAX, but during the application of rewrite_db filter an invalid event is found. Hence mysqlbinlog tool should exit with an appropriate error]
71
76
--echo [ERROR: Got fatal error while applying rewrite db filter.]
72
77
--error 1
@@ -111,11 +116,25 @@ RESET MASTER;
111
116
--let $assert_cond= `SELECT COUNT(*)=1 from new_db1.t1`
112
117
--source include/assert.inc
113
118
119
+
DROP DATABASE db1;
120
+
DROP DATABASE new_db1;
121
+
CREATE DATABASE new_db1;
122
+
# With gtid-mode=on we need purge gtid_executed, if not transactions
123
+
# replayed through mysqlbinlog will be skipped.
124
+
RESET MASTER;
125
+
--echo [The event of table db1.t1 has been successfully applied to new_db1.t1 from raw mode]
0 commit comments