[MDEV-2508] LP:747278 - Wrong non-null result for [NOT] IN with an empty subquery as a left operand. Created: 2011-04-01 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: | Oleksandr Byelkin |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | Launchpad | ||
| Attachments: |
|
| Description |
|
The following queries produce an incorrect non-NULL result when Test case: CREATE TABLE t1 (f1a int, f1b int) ; set @old_optimizer_switch = @@session.optimizer_switch; SELECT (SELECT f3a FROM t3 where f3a > 3) NOT IN (SELECT f1a FROM t1) FROM t2; SET @@optimizer_switch = @old_optimizer_switch; drop table t1, t2, t3; |
| Comments |
| Comment by Philip Stoev (Inactive) [ 2011-08-12 ] |
|
Re: Wrong non-null result for [NOT] IN with an empty subquery as a left operand. |
| Comment by Philip Stoev (Inactive) [ 2011-08-12 ] |
|
Re: Wrong non-null result for [NOT] IN with an empty subquery as a left operand. |
| Comment by Philip Stoev (Inactive) [ 2011-08-12 ] |
|
Unsimplified test case. Let me know if this test case will be used and I will simplify it. bug747278-2.test |
| Comment by Oleksandr Byelkin [ 2011-11-18 ] |
|
Re: Wrong non-null result for [NOT] IN with an empty subquery as a left operand. |
| Comment by Rasmus Johansson (Inactive) [ 2011-12-13 ] |
|
Launchpad bug id: 747278 |