mariadb/mysql-test/suite/maria/partition.result
Alexey Botchkov 6ea2e99830 MDEV-33190 Errors or assertion failure upon REPAIR on partitioned Aria table with misplaced rows.
The ha_maria::repair() call leaves the MARIA_HA::cur_row::rowid filled
after index-recreating scans.
Should be emptied so consequent operations dont fail.
2025-10-21 07:40:45 +04:00

19 lines
543 B
Text

CREATE TABLE t (a INT, KEY(a)) ENGINE=Aria PARTITION BY KEY(a) PARTITIONS 2;
SELECT * FROM t PARTITION (p1);
a
DROP TABLE t;
CREATE TABLE t (a INT KEY) ENGINE=Aria PARTITION BY LIST (a) (
PARTITION p0 VALUES IN (1,2),
PARTITION p1 VALUES IN (3,4)
);
CREATE TABLE t1 (a INT KEY) ENGINE=Aria;
INSERT INTO t1 VALUES (1);
INSERT INTO t1 VALUES (3);
Swap table t1 and partition p0 of table t.
FLUSH TABLES;
REPAIR TABLE t;
Table Op Msg_type Msg_text
test.t repair warning Moved 1 misplaced rows
test.t repair status OK
DROP TABLE t;
DROP TABLE t1;