| 1 |
--source include/have_partition.inc |
| 2 |
|
| 3 |
--echo # |
| 4 |
--echo # MDEV-25347 DML events for auto-partitioned tables are written into binary log twice |
| 5 |
--echo # |
| 6 |
flush binary logs; |
| 7 |
--source include/wait_for_binlog_checkpoint.inc |
| 8 |
create table t1 (a int) with system versioning |
| 9 |
partition by system_time limit 1 auto; |
| 10 |
|
| 11 |
insert into t1 values (1); |
| 12 |
update t1 set a= a + 1; |
| 13 |
update t1 set a= a + 2; |
| 14 |
--replace_result InnoDB ENGINE MyISAM ENGINE MEMORY ENGINE |
| 15 |
show create table t1; |
| 16 |
select * from t1; |
| 17 |
|
| 18 |
--let $binlog_file=master-bin.000002 |
| 19 |
--source include/show_binlog_events.inc |
| 20 |
|
| 21 |
--sync_slave_with_master |
| 22 |
--replace_result InnoDB ENGINE MyISAM ENGINE MEMORY ENGINE |
| 23 |
show create table t1; |
| 24 |
|
| 25 |
select * from t1; |
| 26 |
--connection master |
| 27 |
# cleanup |
| 28 |
drop table t1; |
| 29 |
|
| 30 |
--source include/rpl_end.inc |