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')

    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

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

                Dates

                • Created:
                  Updated:
                  Resolved: