File: binlog_rewrite_db_noleak.result

package info (click to toggle)
mysql-8.0 8.0.43-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,273,924 kB
  • sloc: cpp: 4,684,605; ansic: 412,450; pascal: 108,398; java: 83,641; perl: 30,221; cs: 27,067; sql: 26,594; sh: 24,181; python: 21,816; yacc: 17,169; php: 11,522; xml: 7,388; javascript: 7,076; makefile: 2,194; lex: 1,075; awk: 670; asm: 520; objc: 183; ruby: 97; lisp: 86
file content (29 lines) | stat: -rw-r--r-- 934 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
RESET MASTER;
CREATE DATABASE db1;
USE db1;
CREATE TABLE t1 (i INT);
INSERT INTO db1.t1 VALUES(1);
INSERT INTO db1.t1 VALUES(2);
UPDATE t1 SET i= i+1;
DELETE FROM t1 WHERE i=2;
CREATE DATABASE db2;
CREATE TABLE db2.t1 (i INT);
INSERT INTO db2.t1 VALUES(3);
INSERT INTO db2.t1 VALUES(4);
INSERT INTO db2.t1 VALUES(5);
UPDATE db2.t1 SET i= i+1;
DELETE FROM db2.t1 WHERE i=4;
call mtr.add_suppression("Replica SQL: Error executing row event:*");
Dropping the database db1 creating the new database db3.
DROP DATABASE db1;
CREATE DATABASE db3;
DROP DATABASE db2;
RESET MASTER;
[The sql file will be applied on the current database]
[The content of table db3.t1 and db2.t1 will be different confirming no leak]
include/assert.inc [The content of the table t1 in database db3 and db2 is different]
include/assert.inc [Table t1 in db3 have different row count than t1 in db2]
CLEANUP
DROP DATABASE db1;
DROP DATABASE db2;
DROP DATABASE db3;