Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: None
-
Labels:
Description
Based on customer case, csc#250:
CREATE TABLE tbl (
id PRIMARY KEY,
key1 INT,
key2 INT,
KEY (key1),
KEY (key2) ) engine=innodb;
...
DELETE tbl FROM tbl WHERE key1=const1 AND key2=const2;
^^ this will delete fewer rows than it actually matches.
- Problem happens only with InnoDB (not with MyISAM)
- Setting "index_merge=off" fixes the problem.
- Using a non-multi-table-table DELETE statement fixes the problem.
Gliffy Diagrams
Attachments
Activity
- All
- Comments
- Work Log
- History
- Activity
- Transitions
Re: Multi-table DELETE that uses innodb + index_merge/intersect may fail to delete rows
Doesn't occur in MariaDB 5.2, occurs in 5.3 and 5.5