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

Aria Engine Does Not Allow Index On Virtual Columns

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Duplicate
    • 10.11.2
    • N/A
    • Virtual Columns
    • None
    • Ubuntu

    Description

      When I alter table from innodb engine to Aria engine, it does not allow the indexes on the virtual columns. I am also unable to add them directly on aria engine with alter table command.

      ALTER TABLE `cases` ADD INDEX(`rthirdref`);
      

      gives:

      #1904 - Key/Index cannot be defined on a virtual generated column

      `rthirdref` varchar(50) GENERATED ALWAYS AS (reverse(`thirdref`)) VIRTUAL,
      

      InnoDB engine works fine.

      Attachments

        Issue Links

          Activity

            People

              serg Sergei Golubchik
              loyalpuppy Robert Dayton
              Votes:
              0 Vote for this issue
              Watchers:
              2 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.