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

Different warnings when comparing a garbage to DATETIME vs TIME

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 10.0, 10.1, 10.2, 10.3, 10.4
    • Fix Version/s: 10.4.0
    • Component/s: Temporal Types
    • Labels:
      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

              • Assignee:
                bar Alexander Barkov
                Reporter:
                bar Alexander Barkov
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: