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

update case insensitive (large) unique key with insensitive change of value - duplicate key

    XMLWordPrintable

Details

    Description

      create table x (id int auto_increment primary key, name varchar(2048) collate utf8_general_ci, unique key u(name));
      insert into x values (1,'test');
      update x set name = "Test" where id=1
       
      Duplicate entry 'Test' for key 'u
      

      A smaller varchar length ~200 will not generate an error.

      Suspected MDEV-371 regression.

      source: https://www.reddit.com/r/mariadb/comments/wu83pe/change_case_with_unique_constraint/

      Attachments

        Issue Links

          Activity

            People

              sanja Oleksandr Byelkin
              danblack Daniel Black
              Votes:
              2 Vote for this issue
              Watchers:
              7 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.