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

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 10.0(EOL), 10.1(EOL), 10.2(EOL), 10.3(EOL), 10.4(EOL)
    • 10.4.0
    • Temporal Types
    • 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

            bar Alexander Barkov created issue -
            bar Alexander Barkov made changes -
            Field Original Value New Value
            bar Alexander Barkov made changes -
            Rank Ranked higher
            bar Alexander Barkov made changes -
            Component/s Temporal Types [ 11000 ]
            Fix Version/s 10.4 [ 22408 ]
            Affects Version/s 10.0 [ 16000 ]
            Affects Version/s 10.1 [ 16100 ]
            Affects Version/s 10.2 [ 14601 ]
            Affects Version/s 10.3 [ 22126 ]
            Affects Version/s 10.4 [ 22408 ]
            bar Alexander Barkov made changes -
            Summary Wrong result for TIME('-2001-01-01 10:20:30') Wrong result for TIME('-2001-01-01 10:20:30') and numerous other str-to-time conversion problems
            bar Alexander Barkov made changes -
            issue.field.resolutiondate 2018-10-20 18:32:33.0 2018-10-20 18:32:33.479
            bar Alexander Barkov made changes -
            Fix Version/s 10.4.0 [ 23115 ]
            Fix Version/s 10.4 [ 22408 ]
            Resolution Fixed [ 1 ]
            Status Open [ 1 ] Closed [ 6 ]
            serg Sergei Golubchik made changes -
            Workflow MariaDB v3 [ 90141 ] MariaDB v4 [ 155067 ]

            People

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