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

UPDATE on RocksDB table with unique constraint does not work

    XMLWordPrintable

Details

    Description

      CREATE TABLE t1 (a INT, b CHAR(8), UNIQUE INDEX(a)) ENGINE=RocksDB;
      INSERT INTO t1 (a,b) VALUES (1,'foo'),(2,'bar');
      UPDATE t1 SET a=a+100;
      SELECT * FROM t1;
      

      Actual result

      MariaDB [test]> SELECT * FROM t1;
      +------+------+
      | a    | b    |
      +------+------+
      |  101 | foo  |
      |    2 | bar  |
      +------+------+
      2 rows in set (0.00 sec)
      

      Expected result

      MariaDB [test]> SELECT * FROM t1;
      +------+------+
      | a    | b    |
      +------+------+
      |  101 | foo  |
      |  102 | bar  |
      +------+------+
      2 rows in set (0.00 sec)
      

      It is a recent regression, apparently from the last merge or post-merge changes, I didn't search for the exact commit.

      Attachments

        Activity

          People

            psergei Sergei Petrunia
            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.