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

Incorrect query result

    XMLWordPrintable

Details

    • Bug
    • Status: Confirmed (View Workflow)
    • Major
    • Resolution: Unresolved
    • 10.6, 10.11, 11.4, 12.1(EOL), 11.8.3, 11.8
    • 10.6, 10.11, 11.4, 11.8
    • Data types, Server
    • None

    Description

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

      CREATE TABLE t1 (c1 DECIMAL(10,0)) ENGINE = InnoDB;
      INSERT INTO t1 VALUES (-999999);
      SELECT CAST(c1 AS DECIMAL(10,2)) MOD c1 = 0 FROM t1; -- actual: {0}, expected: {1}
      

      Attachments

        Activity

          People

            bar Alexander Barkov
            John Jove John Jove
            Votes:
            0 Vote for this issue
            Watchers:
            4 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.