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

Wrong result for SELECT NULL,NULL IN (SUBQUERY)

    XMLWordPrintable

Details

    • Bug
    • Status: Stalled (View Workflow)
    • Major
    • Resolution: Unresolved
    • 10.4(EOL)
    • 10.4(EOL)
    • None
    • None

    Description

      Those SELECTs must return NULL but they return 0.

      CREATE TABLE s (s INT);
      INSERT INTO s VALUES(1);
       
      SELECT (SELECT NULL, NULL) IN (SELECT 1, 2 FROM s) FROM s;
      0
      

      CREATE TABLE u(a INT, b INT);
      INSERT INTO u VALUES (NULL, NULL);
      SELECT (SELECT * FROM u) IN (SELECT 1, 2 FROM s) FROM s;
      0
      

      Attachments

        Activity

          People

            oleg.smirnov Oleg Smirnov
            oleg.smirnov Oleg Smirnov
            Votes:
            0 Vote for this issue
            Watchers:
            1 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.