[MDEV-3541] LP:702374 - wrong query result in subselect_sj.test Created: 2011-01-13 Updated: 2012-10-04 Resolved: 2012-10-04 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Sergei Petrunia | Assignee: | Sergei Petrunia |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | Launchpad | ||
| Attachments: |
|
| Description |
|
The testcase for "Bug#46550 Azalea returning duplicate results for some IN subqueries" in subselect_sj.test produces wrong results: CREATE TABLE t0 ( INSERT INTO t0 VALUES CREATE TABLE t1 ( CREATE TABLE t2 ( MariaDB [j6]> SELECT t0.int_key FROM t0, t2 WHERE t0.varchar_nokey IN (SELECT t1_1 .varchar_key FROM t1 AS t1_1 JOIN t1 AS t1_2 ON t1_1 .int_key);
---------
--------- The correct result is { (9), (7)}, i.e. we get duplicates. |
| Comments |
| Comment by Sergei Petrunia [ 2011-01-13 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
Re: wrong query result with semi-join + FirstMatch (subselect_sj.test) MariaDB [j6]> explain SELECT t0.int_key FROM t0, t2 WHERE t0.varchar_nokey IN ( SELECT t1_1 .varchar_key FROM t1 AS t1_1 JOIN t1 AS t1_2 ON t1_1 .int_key );
---
--- | ||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Sergei Petrunia [ 2012-05-23 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
Re: wrong query result in subselect_sj.test | ||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Rasmus Johansson (Inactive) [ 2012-05-23 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
Launchpad bug id: 702374 |