Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-38068

Query doesn't delete all data it should after update to 11.8.4

    XMLWordPrintable

Details

    • 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

          Activity

            People

              serg Sergei Golubchik
              honis Jan Holubec
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.