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

Crash on a simple join query with IS NULL and IS NOT NULL in where

Details

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

    Description

      After rev 3702 the following test case causes a crash of the server

      CREATE TABLE t1 (a DATE, b INT, c INT, KEY(a), KEY(b), KEY(c)) ENGINE=MyISAM; 
      CREATE TABLE t2 (d DATE) ENGINE=MyISAM; 
       
      SELECT  * FROM t1,t2 WHERE  1 IS NOT NULL AND t1.b IS NULL;
       
      DROP TABLE t1,t2;

      Attachments

        Activity

          igor Igor Babaev (Inactive) created issue -
          igor Igor Babaev (Inactive) made changes -
          Field Original Value New Value
          Description After rev 3702 the following test case causes a crash of the server

          {sql.code}
          CREATE TABLE t1 (a DATE, b INT, c INT, KEY(a), KEY(b), KEY(c)) ENGINE=MyISAM;
          CREATE TABLE t2 (d DATE) ENGINE=MyISAM;

          SELECT * FROM t1,t2 WHERE 1 IS NOT NULL AND t1.b IS NULL;

          DROP TABLE t1,t2;
          {code}
          After rev 3702 the following test case causes a crash of the server

          {code}
          CREATE TABLE t1 (a DATE, b INT, c INT, KEY(a), KEY(b), KEY(c)) ENGINE=MyISAM;
          CREATE TABLE t2 (d DATE) ENGINE=MyISAM;

          SELECT * FROM t1,t2 WHERE 1 IS NOT NULL AND t1.b IS NULL;

          DROP TABLE t1,t2;
          {code}
          igor Igor Babaev (Inactive) made changes -
          Summary Crash on a simple join query with IS NULL and NOT IS NULL in where Crash on a simple join query with IS NULL and IS NOT NULL in where

          The bug was fixed in the revision 3704.

          igor Igor Babaev (Inactive) added a comment - The bug was fixed in the revision 3704.
          igor Igor Babaev (Inactive) made changes -
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Closed [ 6 ]
          serg Sergei Golubchik made changes -
          Workflow defaullt [ 29262 ] MariaDB v2 [ 44208 ]
          ratzpo Rasmus Johansson (Inactive) made changes -
          Workflow MariaDB v2 [ 44208 ] MariaDB v3 [ 63493 ]
          serg Sergei Golubchik made changes -
          Workflow MariaDB v3 [ 63493 ] MariaDB v4 [ 147122 ]

          People

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