Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor 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
    • Labels:
      None
    • Global Rank:
      3434

      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.

        Activity

        Hide
        Alexander Barkov added a comment -

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

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

          People

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

            Dates

            • Created:
              Updated:
              Resolved: