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

Incorrect query result

    XMLWordPrintable

Details

    • Unexpected results
    • Q2/2026 Server Development, Q3/2026 Server Maintenance

    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

              raghunandan.bhat Raghunandan Bhat
              John Jove John Jove
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0d
                  0d
                  Logged:
                  Time Spent - 5.95h
                  5.95h

                  Git Integration

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