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

REPLACE doesn't work with unique blobs on MyISAM table

    XMLWordPrintable

Details

    Description

      CREATE TABLE t (b BLOB, UNIQUE(b)) ENGINE=MyISAM;
      INSERT INTO t VALUES ('foo');
      REPLACE INTO t VALUES ('foo');
       
      # Cleanup
      DROP TABLE t;
      

      bb-10.4-release-long_unique 5ddae0e0

      mysqltest: At line 3: query 'REPLACE INTO t VALUES ('foo')' failed: 1062: Duplicate entry 'foo' for key 'b'
      

      I'm not sure whether it's supposed to work or not.

      InnoDB currently produces an assertion failure similar to MDEV-18731.

      Attachments

        Issue Links

          Activity

            People

              serg Sergei Golubchik
              elenst Elena Stepanova
              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.