Debian Codegraph @

mysql-test/suite/parts/r/partition_purge.result

raw
1 CREATE TABLE t1(f1 INT, f2 INT, INDEX(f1))ENGINE=InnoDB STATS_PERSISTENT=0
2 PARTITION BY LIST(f1) (
3 PARTITION p1 VALUES in (1, 2, 3),
4 PARTITION p2 VALUES in (4, 5, 6));
5 INSERT INTO t1 VALUES(1, 1), (1, 1), (6, 1);
6 connect con1,localhost,root,,,;
7 START TRANSACTION WITH CONSISTENT SNAPSHOT;
8 connect con2,localhost,root,,,;
9 SET DEBUG_SYNC="innodb_rollback_inplace_alter_table SIGNAL default_resume WAIT_FOR alter_resume";
10 ALTER TABLE t1 ADD UNIQUE INDEX(f1);
11 connection default;
12 set DEBUG_SYNC="now WAIT_FOR default_resume";
13 SET DEBUG_SYNC="innodb_row_update_for_mysql_begin SIGNAL alter_resume WAIT_FOR alter_finish";
14 DELETE FROM t1;
15 connection con2;
16 ERROR 23000: Duplicate entry '1' for key 'f1_2'
17 SET DEBUG_SYNC="now SIGNAL alter_finish";
18 connection default;
19 connection con1;
20 commit;
21 connection default;
22 disconnect con1;
23 disconnect con2;
24 InnoDB 0 transactions not purged
25 drop table t1;
26 SET DEBUG_SYNC=reset;