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

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

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Fixed
    • 10.0.3
    • 10.0.4
    • None
    • 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.

      Attachments

        Activity

          People

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