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

    • Bug
    • Status: Open (View Workflow)
    • Minor
    • Resolution: Unresolved
    • 10.4(EOL), 10.5, 10.6, 10.11, 11.0(EOL), 11.1(EOL), 11.2(EOL)
    • 10.5, 10.6, 10.11
    • Storage Engine - Aria
    • None

    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

            monty Michael Widenius
            elenst Elena Stepanova
            Votes:
            0 Vote for this issue
            Watchers:
            2 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.