mirror of
https://github.com/MariaDB/server.git
synced 2025-01-20 14:02:32 +01:00
23ab9bd4db
mysql-test/suite/ndb/t/ndb_binlog_format.test: Rename: mysql-test/t/ndb_binlog_format.test -> mysql-test/suite/ndb/t/ndb_binlog_format.test mysql-test/suite/ndb/r/ndb_binlog_format.result: Rename: mysql-test/r/ndb_binlog_format.result -> mysql-test/suite/ndb/r/ndb_binlog_format.result
30 lines
1.5 KiB
Text
30 lines
1.5 KiB
Text
drop table if exists t1, t2, t3;
|
|
CREATE TABLE t1 (m INT, n INT) ENGINE=MYISAM;
|
|
CREATE TABLE t2 (b INT, c INT) ENGINE=BLACKHOLE;
|
|
CREATE TABLE t3 (e INT, f INT) ENGINE=NDB;
|
|
RESET MASTER;
|
|
SET SESSION BINLOG_FORMAT=STATEMENT;
|
|
INSERT INTO t1 VALUES (1,1), (1,2), (2,1), (2,2);
|
|
INSERT INTO t2 VALUES (1,1), (1,2), (2,1), (2,2);
|
|
UPDATE t1, t2 SET m = 2, b = 3 WHERE n = c;
|
|
START TRANSACTION;
|
|
INSERT INTO t3 VALUES (1,1), (1,2), (2,1), (2,2);
|
|
UPDATE t1, t3 SET m = 2, e = 3 WHERE n = f;
|
|
UPDATE t3, t2 SET e = 2, b = 3 WHERE f = c;
|
|
COMMIT;
|
|
show binlog events from <binlog_start>;
|
|
Log_name Pos Event_type Server_id End_log_pos Info
|
|
master-bin.000001 # Query # # use `test`; INSERT INTO t1 VALUES (1,1), (1,2), (2,1), (2,2)
|
|
master-bin.000001 # Query # # use `test`; INSERT INTO t2 VALUES (1,1), (1,2), (2,1), (2,2)
|
|
master-bin.000001 # Query # # use `test`; UPDATE t1, t2 SET m = 2, b = 3 WHERE n = c
|
|
master-bin.000001 # Query # # use `test`; BEGIN
|
|
master-bin.000001 # Query # # use `test`; INSERT INTO t3 VALUES (1,1), (1,2), (2,1), (2,2)
|
|
master-bin.000001 # Query # # use `test`; UPDATE t1, t3 SET m = 2, e = 3 WHERE n = f
|
|
master-bin.000001 # Query # # use `test`; UPDATE t3, t2 SET e = 2, b = 3 WHERE f = c
|
|
master-bin.000001 # Query # # use `test`; COMMIT
|
|
master-bin.000001 # Query # # BEGIN
|
|
master-bin.000001 # Table_map # # table_id: # (test.t3)
|
|
master-bin.000001 # Table_map # # table_id: # (mysql.ndb_apply_status)
|
|
master-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F
|
|
master-bin.000001 # Query # # COMMIT
|
|
DROP TABLE t1, t2, t3;
|