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

Redundant warning in SELECT TIME('00:00:00.');

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 10.0.3
    • Fix Version/s: 10.0.4
    • Component/s: None
    • Labels:
      None

      Description

      A warning is returned in this query:

      mysql> SELECT TIME('00:00:00.');
      +-------------------+
      | TIME('00:00:00.') |
      +-------------------+
      | 00:00:00          |
      +-------------------+
      1 row in set, 1 warning (1.38 sec)
      
      mysql> show warnings;
      +---------+------+---------------------------------------------+
      | Level   | Code | Message                                     |
      +---------+------+---------------------------------------------+
      | Warning | 1292 | Truncated incorrect time value: '00:00:00.' |
      +---------+------+---------------------------------------------+
      1 row in set (0.00 sec)
      

      No significant information gets lost in this case, so the warning looks unnecessary.

        Gliffy Diagrams

          Activity

          Hide
          bar Alexander Barkov added a comment -

          The patch merging SQL standard temporal literals (from MySQL-5.6) fixed this problem.

          Show
          bar Alexander Barkov added a comment - The patch merging SQL standard temporal literals (from MySQL-5.6) fixed this problem.

            People

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

              Dates

              • Created:
                Updated:
                Resolved: