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

Wrong result for 0 + LEAST(TIME'-10:00:00',TIME'10:00:00')

    XMLWordPrintable

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
    • Data types, Temporal Types
    • None

    Description

      SELECT 0 + LEAST(TIME'-10:00:00',TIME'10:00:00') AS c;
      

      +--------+
      | c      |
      +--------+
      | 100000 |
      +--------+
      

      Looks wrong. The expected result is -100000.

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

                Git Integration

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