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

The representation of 0 in multiplication, pow function

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Duplicate
    • 10.9.4
    • N/A
    • N/A
    • None
    • maria docker

    Description

      SELECT '0'*-4; – expected: 0, actual: -0
      SELECT pow('0'*-4,3); – expected: 0, actual: -0

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

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              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.