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

Wrong result for CONCAT(GREATEST(TIME('00:00:01'),TIME('00:00:00')))

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 10.0.3, 5.5.32, 5.3.13
    • Fix Version/s: 10.0.4, 5.5.33, 5.3.13
    • Component/s: None
    • Labels:
      None

      Description

      This query:

      SELECT CONCAT(GREATEST(TIME('00:00:01'),TIME('00:00:00')));
      

      returns "0000-00-00 00:00:01.000000".

      The expected result is "00:00:01.000000".

      Note,

      SELECT GREATEST(TIME('00:00:01'),TIME('00:00:00'));
      

      works fine and returns "00:00:01.000000".

      MySQL-5.5 and MySQL-5.6 are not affected.

        Gliffy Diagrams

          Activity

          Hide
          bar Alexander Barkov added a comment -

          Fixed in 5.3.13 and 5.5.32.

          Show
          bar Alexander Barkov added a comment - Fixed in 5.3.13 and 5.5.32.

            People

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

              Dates

              • Created:
                Updated:
                Resolved: