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

The representation of 0 in division function in computing string

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Not a Bug
    • 10.9.4
    • N/A
    • Data types
    • None
    • mariadb docker

    Description

      When we use the division function to calculate, we find that if there is a negative number type string, the result will be inconsistent with the expectation

      select 0/-4; – actual: 0.0000, expect: 0
      select '0'/-4; – actual: -0, expect: 0

      MySQL has verified this as a bug. please see https://bugs.mysql.com/bug.php?id=109837. so I consider it also a bug for mariadb.

      Attachments

        Issue Links

          Activity

            People

              serg Sergei Golubchik
              undefined 王瑞丰
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.