mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
MDEV-16106 Record in index was not found on rollback, trying to insert: TUPLE
During rollback of temporary table logs, secondary index should delete mark the index entry instead of removing it completely.
This commit is contained in:
@ -638,3 +638,15 @@ t1 CREATE TEMPORARY TABLE `t1` (
|
||||
`j` int(11) DEFAULT NULL,
|
||||
PRIMARY KEY (`i`) KEY_BLOCK_SIZE=8
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC
|
||||
DROP TABLE t1;
|
||||
CREATE TEMPORARY TABLE t1(f1 INT, KEY(f1)) ENGINE=InnoDB;
|
||||
INSERT INTO t1 VALUES(NULL);
|
||||
UPDATE t1 SET f1 = 0;
|
||||
START TRANSACTION;
|
||||
UPDATE t1 SET f1 = 4;
|
||||
UPDATE t1 SET f1 = 0;
|
||||
ROLLBACK;
|
||||
SELECT * FROM t1;
|
||||
f1
|
||||
0
|
||||
DROP TABLE t1;
|
||||
|
Reference in New Issue
Block a user