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

The problem of the representation of zero in the MOD function

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

            undefined 王瑞丰 created issue -
            serg Sergei Golubchik made changes -
            Field Original Value New Value
            issue.field.resolutiondate 2022-11-20 13:36:03.0 2022-11-20 13:36:03.742
            serg Sergei Golubchik made changes -
            Component/s Data types [ 13906 ]
            Fix Version/s N/A [ 14700 ]
            Assignee Sergei Golubchik [ serg ]
            Resolution Duplicate [ 3 ]
            Status Open [ 1 ] Closed [ 6 ]
            serg Sergei Golubchik made changes -

            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.