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

Different warnings when comparing a garbage to DATETIME vs TIME

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 10.0, 10.1, 10.2, 10.3, 10.4
    • 10.4.0
    • Temporal Types
    • None

    Description

      SELECT TIMESTAMP(0)='z', TIME(0)='z';
      SHOW WARNINGS;
      

      +---------+------+-------------------------------------+
      | Level   | Code | Message                             |
      +---------+------+-------------------------------------+
      | Warning | 1292 | Incorrect datetime value: 'z'       |
      | Warning | 1292 | Truncated incorrect time value: 'z' |
      +---------+------+-------------------------------------+
      

      Perhaps the same warning should be displayed.

      Attachments

        Issue Links

          Activity

            People

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