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

Inconsitent results for TIME(8395960) and TIME('839:59:60')

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • 5.5, 10.0, 10.1, 10.2, 10.3, 10.4
    • 10.4
    • Temporal Types
    • None

    Description

      SELECT TIME(8395960), TIME('839:59:60');
      

      +---------------+-------------------+
      | TIME(8395960) | TIME('839:59:60') |
      +---------------+-------------------+
      | 838:59:59     | NULL              |
      +---------------+-------------------+
      1 row in set, 2 warnings (0.00 sec)
      

      Looks wrong. Both columns should be NULL,
      A value with a bad second value 60 should not adjust to the maximum time value.

      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:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.