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

    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.