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

The problem of the representation of zero in the MOD function

    XMLWordPrintable

Details

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

    Description

      Consider the following statements:

      SELECT mod(-12,-4); – expected: 0, actual: 0
      SELECT mod('-12',-4); – expected: 0, actual: -0
      the result of these two test cases is different, We expect them to be the same.

      database version : 10.9.4-MariaDB-1:10.9.4+maria~ubu2204

      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.