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

UPDATE on RocksDB table with unique constraint does not work

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

          elenst Elena Stepanova created issue -
          serg Sergei Golubchik made changes -
          Field Original Value New Value
          Fix Version/s 10.2.15 [ 23006 ]
          Fix Version/s 10.3.7 [ 23005 ]
          Fix Version/s 10.2 [ 14601 ]
          Fix Version/s 10.3 [ 22126 ]
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Closed [ 6 ]
          serg Sergei Golubchik made changes -
          Workflow MariaDB v3 [ 87186 ] MariaDB v4 [ 154351 ]

          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.