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

An unexpected fetch by the SELECT statement

    XMLWordPrintable

Details

    • Bug
    • Status: Confirmed (View Workflow)
    • Major
    • Resolution: Unresolved
    • 10.11.2, 10.3(EOL), 10.4(EOL), 10.5, 10.6, 10.7(EOL), 10.8(EOL), 10.9(EOL), 10.10(EOL)
    • 10.5, 10.6, 10.11
    • Server
    • ubuntu 20.04 LTS

    Description

      I deploy MariaDB with version 10.11.2 in docker and run the following statements.
      I doubt the SELECT statement may return an incorrect result.

      CREATE TABLE t1 (c1 INT);
      INSERT INTO t1 VALUES (1);
       
      SELECT c1 FROM t1 WHERE (! (! -1)) NOT IN (1); -- actual: 1, expected: 0
      SELECT c1 FROM t1 WHERE (! (! -1)) LIKE (1); -- actual: 0, expected: 1
       
      SELECT (! (! -1)) NOT IN (1); -- 0
      SELECT (! (! -1)) LIKE (1); -- 1
      

      Attachments

        Activity

          People

            sanja Oleksandr Byelkin
            John Jove John Jove
            Votes:
            0 Vote for this issue
            Watchers:
            3 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.