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

Incorrect query results

    XMLWordPrintable

Details

    Description

      DROP TABLE t1;
      CREATE TABLE t1 (c1 INT, c2 BOOL);
      INSERT INTO t1 VALUES (6327341, 24);
      SELECT (c1 << (LEAST(c2, (~c2)))) FROM t1; -- {0}
      

      Run the above test case, which is expected to return 106155166662656.

      Attachments

        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.