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

Incorrect error message when dropping a column with a combined unique index

    XMLWordPrintable

Details

    Description

      CREATE TABLE `TestTab` (
        `ID` int(11) NOT NULL AUTO_INCREMENT,
        `MyCol1` int(11) NOT NULL,
        `MyCol2` int(11) NOT NULL,
        PRIMARY KEY (`ID`),
        UNIQUE KEY `MyUniqIdx` (`MyCol1`,`MyCol2`)
      ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin
      

      drop column

      alter table TestTab drop MyCol2

      Error Message:

      ERROR 1072 (42000) at line 1: Key column 'MyCol2' doesn't exist in table

      Attachments

        Activity

          People

            pranav.tiwari@mariadb.com Pranav Kumar Tiwari
            svh Stefan van Hasselt
            Votes:
            0 Vote for this issue
            Watchers:
            3 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.