Details
-
Bug
-
Status: Closed (View Workflow)
-
Blocker
-
Resolution: Fixed
-
11.8.4
-
None
-
Unexpected results
-
DELETE from the MyISAM or Aria table that had WHERE clause with the non-unique indexed column col=const and EXPLAIN showing "range" on that column, could have deleted only two rows, not all that match the WHERE clause.
Description
When I run query
DELETE FROM `transaction` |
WHERE product_id = 'p6cA' |
AND date_of_transaction > '1970-01-01' + INTERVAL 7 DAY |
AND date_of_transaction < '2024-09-07' - INTERVAL 7 DAY |
on the table contained in the dump file, version 11.8.3 correctly deletes 606 but version 11.8.4 deletes only two rows ( if I then repeatedly run query again, only two rows gets deleted every time ), affects both Aria and MyISAM as per my testing.
I tried to create more minimal example of this behavior but to no avail, so I suspect it has something to do with the index or data itself.
Attachments
Issue Links
- is caused by
-
MDEV-15990 REPLACE on a precise-versioned table returns duplicate key error (ER_DUP_ENTRY)
-
- Closed
-