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

ROUND(18446744073709551615,-1) returns a wrong result

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 10.1, 10.2, 10.3, 10.4, 10.5
    • Fix Version/s: 10.4.14, 10.5.5
    • Component/s: Data types
    • Labels:
      None

      Description

      SELECT
        ROUND(18446744073709551615,-1),
        ROUND(18446744073709551615.0,-1);
      

      +--------------------------------+----------------------------------+
      | ROUND(18446744073709551615,-1) | ROUND(18446744073709551615.0,-1) |
      +--------------------------------+----------------------------------+
      |                              4 |             18446744073709551620 |
      +--------------------------------+----------------------------------+
      

        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: