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

Wrong ER_DUP_ENTRY upon ADD UNIQUE KEY on versioned table

    XMLWordPrintable

Details

    Description

      CREATE TABLE t1 (i INT) WITH SYSTEM VERSIONING;
      INSERT INTO t1 VALUES (1),(1);
      DELETE FROM t1;
       
      ALTER TABLE t1 ADD UNIQUE KEY (i);
       
      # Cleanup
      DROP TABLE t1;
      

      10.3 a22a339f8e

      mysqltest: At line 5: query 'ALTER TABLE t1 ADD UNIQUE KEY (i)' failed: 1062: Duplicate entry '1' for key 'i'
      

      Attachments

        Issue Links

          Activity

            People

              midenok Aleksey Midenkov
              elenst Elena Stepanova
              Votes:
              0 Vote for this issue
              Watchers:
              3 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.