[MDEV-3545] LP:692535 - Wrong result with NULL NOT IN subquery Created: 2010-12-20 Updated: 2015-02-02 Resolved: 2012-10-04 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Trivial |
| Reporter: | Timour Katchaounov (Inactive) | Assignee: | Timour Katchaounov (Inactive) |
| Resolution: | Won't Fix | Votes: | 0 |
| Labels: | Launchpad | ||
| Attachments: |
|
| Description |
|
In the following test case the two subqueries should produce the same The only difference in the two queries is LEFT vs INNER join in the drop table if exists t1; CREATE TABLE t1 ( – Wrong result - should be empty – Correct empty result – Verify that the result from the two subqueries is the same. SELECT INNR.pk FROM t1 AS INNR2 JOIN t1 AS INNR ON (INNR2.int_key = INNR.int_key) SELECT INNR.pk FROM t1 AS INNR2 LEFT JOIN t1 AS INNR ON (INNR2.int_key = INNR.int_key) create table t2_inr as create table t2_outr as explain t2_inr; |
| Comments |
| Comment by Timour Katchaounov (Inactive) [ 2010-12-20 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Re: Wrong result with NULL NOT IN subquery | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Philip Stoev (Inactive) [ 2011-03-02 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Re: Wrong result with NULL NOT IN subquery Repeatable in maria-5.3, maria-5.2, mysql-5.5 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Timour Katchaounov (Inactive) [ 2011-03-02 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Re: Wrong result with NULL NOT IN subquery Explain in 5.3:
---
--- Explain in 5.3-mwl89:
---
--- | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Rasmus Johansson (Inactive) [ 2011-03-02 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Launchpad bug id: 692535 |