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

Wrong result for TIME('-2001-01-01 10:20:30') and numerous other str-to-time conversion problems

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 10.0, 10.1, 10.2, 10.3, 10.4
    • Fix Version/s: 10.4.0
    • Component/s: Temporal Types
    • Labels:
      None

      Description

      SELECT TIME('-2001-01-01 10:20:30');
      

      +------------------------------+
      | TIME('-2001-01-01 10:20:30') |
      +------------------------------+
      | 10:20:30                     |
      +------------------------------+
      

      Looks wrong. The expected result is NULL.

        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:
                  Resolved: