Details

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

      Description

      There is some inconsistency between
      MAKETIME(0,0, negative_integer_number) and
      MAKETIME(0,0, negative_decimal_number)

      SELECT MAKETIME(0,0,-1), MAKETIME(0, 0, -0.1);
      +------------------+----------------------+
      | MAKETIME(0,0,-1) | MAKETIME(0, 0, -0.1) |
      +------------------+----------------------+
      | NULL             | 00:00:00             |
      +------------------+----------------------+
      

      The expression with the negative decimal number should also return NULL.

      MySQL-5.5 exhibits the same behaviour.
      MySQL-5.6 returns NULL for both expressions.

        Gliffy Diagrams

          Attachments

            Activity

            Hide
            bar Alexander Barkov added a comment -

            The patch for "MDEV-4724 Some temporal functions do not preserve microseconds" fixed this issue as well.

            Show
            bar Alexander Barkov added a comment - The patch for " MDEV-4724 Some temporal functions do not preserve microseconds" fixed this issue as well.

              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: