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

Incorrect query result

    XMLWordPrintable

Details

    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:
            3 Start watching this issue

            Dates

              Created:
              Updated: