MariaDB Development
  1. MariaDB Development
  2. MDEV-4844

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

    Details

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

      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.

        Activity

        Hide
        Alexander Barkov added a comment -

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

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

          People

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

            Dates

            • Created:
              Updated:
              Resolved: