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

Incorrect query result

    XMLWordPrintable

Details

    Description

      Run the following statements, in which 0 should be returned.

      CREATE TABLE t1 (c1 VARCHAR(20) UNIQUE);
      INSERT INTO t1 VALUES (-7222412721392380250);
      SELECT (CAST(c1 AS FLOAT) - (MIN(CAST(c1 AS FLOAT)))) FROM t1 GROUP BY c1; -- {2606907088896}, expected: {0}
      

      Attachments

        Issue Links

          Activity

            People

              psergei Sergei Petrunia
              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.