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

LP:993726 - Wrong result from a query with ALL subquery predicate in WHERE

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Critical
    • Resolution: Fixed
    • None
    • None
    • None

    Description

      The following sequence of commands returns an incorrect result set in maridb-5.2:

      CREATE TABLE t1(a INT);
      INSERT INTO t1 VALUES (0);
      SELECT 1 FROM t1 WHERE 1 > ALL(SELECT 1 FROM t1 WHERE a!=0);

      MariaDB [test]> SELECT 1 FROM t1 WHERE 1 > ALL(SELECT 1 FROM t1 WHERE a!=0);
      Empty set (0.00 sec)

      (see also bug #12888306 for mysql code line)

      Attachments

        Activity

          People

            sanja Oleksandr Byelkin
            igor Igor Babaev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 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.