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

Error in subquery not causing outer query to fail

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Not a Bug
    • 10.0.27
    • N/A
    • None
    • MariaDB on Amazon AWS (Ubuntu 16.04.1 LTS)

    Description

      The following query doesn't return an error from the SQL engine:

      SELECT *
      FROM table1
      WHERE col1 NOT IN (SELECT col2 FROM table2);
      

      In this case, "table2" doesn't contain a column named 'col2'. But the query still runs and returns empty set.

      Attachments

        Activity

          People

            serg Sergei Golubchik
            m2pc Jason Johnson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.