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

sql_mode=traditional: assertion about NULL fails in Item_func_round::date_op

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • 10.5, 10.6, 10.4(EOL), 10.7(EOL), 10.8(EOL), 10.9(EOL)
    • 10.4(EOL)
    • None
    • None

    Description

      I'm filing here extra testcases that were posted as comments for MDEV-20501 but represent a different problem and are not fixed by the fix for MDEV-20501.

      https://jira.mariadb.org/browse/MDEV-20501?focusedCommentId=153956&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-153956

      USE test;
      CREATE TABLE t (a TIMESTAMP,b TIMESTAMP);  # (ENGINE=InnoDB) 
      INSERT INTO t VALUES (0,0);
      SET SQL_MODE='TRADITIONAL';
      SELECT TRUNCATE(a,b) AS c FROM t;
      

      https://jira.mariadb.org/browse/MDEV-20501?focusedCommentId=188708&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-188708

      SET sql_mode='';
      CREATE TABLE t5 (c TIMESTAMP KEY,c2 INT NOT NULL,c3 CHAR(1) NOT NULL);
      INSERT INTO t5 (c) VALUES (1);
      SET sql_mode=traditional;
      SELECT ROUND (c,c2),TRUNCATE (c,c2) FROM t5;
      

      Attachments

        Issue Links

          Activity

            People

              bar Alexander Barkov
              psergei Sergei Petrunia
              Votes:
              0 Vote for this issue
              Watchers:
              1 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.