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

Error 124 "Wrong index given to a function" upon HANDLER after DISABLE KEYS

    XMLWordPrintable

Details

    Description

      CREATE TABLE t (a INT, KEY(a)) ENGINE=Aria;
      ALTER TABLE t DISABLE KEYS;
      HANDLER t OPEN;
      HANDLER t READ a NEXT;
       
      # Cleanup
      HANDLER t CLOSE;
      DROP TABLE t;
      

      10.4 9e321a44

      mysqltest: At line 4: query 'HANDLER t READ a NEXT' failed: 1030: Got error 124 "Wrong index given to a function" from storage engine Aria
      

      and in the error log

      2023-11-11  2:56:15 4 [ERROR] mysql_ha_read: Got error 124 when reading table 't'
      

      MyISAM works, so chances are something goes wrong with Aria here.

      Attachments

        Activity

          People

            sanja Oleksandr Byelkin
            elenst Elena Stepanova
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Git Integration

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