| 1 |
RESET MASTER; |
| 2 |
CREATE TABLE t (f INT) ENGINE=INNODB; |
| 3 |
CREATE TABLE ta (f INT) ENGINE=Aria; |
| 4 |
BEGIN; |
| 5 |
INSERT INTO t SET f = 1; |
| 6 |
INSERT INTO ta SET f = 1; |
| 7 |
COMMIT; |
| 8 |
include/show_binlog_events.inc |
| 9 |
Log_name Pos Event_type Server_id End_log_pos Info |
| 10 |
master-bin.000001 # Gtid # # BEGIN GTID #-#-# |
| 11 |
master-bin.000001 # Query # # use `test`; INSERT INTO ta SET f = 1 |
| 12 |
master-bin.000001 # Query # # COMMIT |
| 13 |
master-bin.000001 # Gtid # # BEGIN GTID #-#-# |
| 14 |
master-bin.000001 # Query # # use `test`; INSERT INTO t SET f = 1 |
| 15 |
master-bin.000001 # Query # # COMMIT |
| 16 |
# Prove that binlog is resettable. Under the bug condition it was not. |
| 17 |
RESET MASTER; |
| 18 |
SET @@binlog_format = ROW; |
| 19 |
CREATE TABLE ta2 ENGINE = Aria SELECT * from t; |
| 20 |
include/show_binlog_events.inc |
| 21 |
Log_name Pos Event_type Server_id End_log_pos Info |
| 22 |
master-bin.000001 # Gtid # # BEGIN GTID #-#-# |
| 23 |
master-bin.000001 # Query # # use `test`; CREATE TABLE `ta2` ( |
| 24 |
`f` int(11) DEFAULT NULL |
| 25 |
) ENGINE=Aria PAGE_CHECKSUM=1 |
| 26 |
master-bin.000001 # Annotate_rows # # CREATE TABLE ta2 ENGINE = Aria SELECT * from t |
| 27 |
master-bin.000001 # Table_map # # table_id: # (test.ta2) |
| 28 |
master-bin.000001 # Write_rows_v1 # # table_id: # flags: STMT_END_F |
| 29 |
master-bin.000001 # Query # # COMMIT |
| 30 |
# Prove that binlog is resettable. Under the bug condition it was not. |
| 31 |
RESET MASTER; |
| 32 |
# Cleanup |
| 33 |
DROP TABLE ta2, ta, t; |
| 34 |
# End of the tests |