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

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

    Details

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

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

                Dates

                • Created:
                  Updated: