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

UPDATE IGNORE does not produce warnings upon duplicate key

    XMLWordPrintable

    Details

      Description

      create table t1 (a int unique);
      insert into t1 values (1),(2),(3);
      update ignore t1 set a = 4;
       
      # Cleanup
      drop table t1;
      

      10.7 d552e092

      MariaDB [test]> update ignore t1 set a = 4;
      Query OK, 1 row affected (0.008 sec)
      Rows matched: 3  Changed: 1  Warnings: 0
       
      MariaDB [test]> select * from t1;
      +------+
      | a    |
      +------+
      |    2 |
      |    3 |
      |    4 |
      +------+
      3 rows in set (0.001 sec)
      

      Also reproducible on MySQL 5.6, but not on 5.7.

        Attachments

          Activity

            People

            Assignee:
            sanja Oleksandr Byelkin
            Reporter:
            elenst Elena Stepanova
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:

                Git Integration