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

Incorrect calculation results

    XMLWordPrintable

Details

    Description

      I run the following statements, in which a zero is expected to return.

      CREATE TABLE t1 (c1 BIGINT);
      INSERT INTO t1 VALUES (-1336292660);
      SELECT c1 MOD ROUND(c1, -1) * CONV(c1, 10, 10) FROM t1; -- actual: {-0}, expected: {0}
      

      Attachments

        Issue Links

          Activity

            People

              bar Alexander Barkov
              John Jove John Jove
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Git Integration

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