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

UPDATE which works on 10.3 causes ER_TRUNCATED_WRONG_VALUE on 10.4

    XMLWordPrintable

Details

    Description

      Note: Quite possibly it's an expected change in behavior, but I would want to make sure.

      CREATE TABLE t (f1 varchar(8), f2 varchar(8), KEY (f1) USING BTREE) ENGINE=MEMORY;
      INSERT INTO t VALUES ('foo','a'),('bar','b');
      UPDATE t SET f1 = 'x' WHERE f1 <> 'x' AND f2 BETWEEN 0 AND 3;
       
      # Cleanup
      DROP TABLE t;
      

      10.3 95d783af

      UPDATE t SET f1 = 'x' WHERE f1 <> 'x' AND f2 BETWEEN 0 AND 3;
      Warnings:
      Warning	1292	Truncated incorrect DOUBLE value: 'b'
      Warning	1292	Truncated incorrect DOUBLE value: 'a'
      

      The UPDATE above passes on 10.3 (with warnings), but fails on 10.4.

      10.4 bff7cf9d

      mysqltest: At line 3: query 'UPDATE t SET f1 = 'x' WHERE f1 <> 'x' AND f2 BETWEEN 0 AND 3' failed: 1292: Truncated incorrect DOUBLE value: 'a'
      

      SQL_MODE is the same on both servers, STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION.

      Attachments

        Activity

          People

            bar Alexander Barkov
            elenst Elena Stepanova
            Votes:
            0 Vote for this issue
            Watchers:
            2 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.