[MDEV-3416] LP:908269 - Wrong result with subquery in select list, EXISTS, constant MyISAM/Aria table Created: 2011-12-23 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: | Minor |
| Reporter: | Elena Stepanova | Assignee: | Oleksandr Byelkin |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | Launchpad | ||
| Attachments: |
|
| Description |
|
The following query SELECT ( returns different results in 5.3 comparing to 5.2, MySQL-5.5.19, PostreSQL-8.4 and 5.3-exists2in with exists_to_in=ON. Result in 5.3: Result in 5.2.10, MySQL-5.5.19, PostreSQL, 5.3-exists2in with exists_to_in=ON: I assume that the latter is the correct result, although it needs to be confirmed. bzr version-info Minimal optimizer_switch: in_to_exists=on or materialization=on (otherwise the query doesn't run) EXPLAIN from 5.3 (presumably wrong result): 1 PRIMARY t1 ALL NULL NULL NULL NULL 2 100.00 EXPLAIN from 5.2 (presumably correct result): 1 PRIMARY t1 ALL NULL NULL NULL NULL 2 100.00 EXPLAIN from 5.3-exists2in with exists_to_in=ON (presumably correct result): 1 PRIMARY t1 ALL NULL NULL NULL NULL 2 100.00 Test case: CREATE TABLE t1 ( a INT );
CREATE TABLE t3 ( c INT ); SELECT ( |
| Comments |
| Comment by Oleksandr Byelkin [ 2011-12-26 ] |
|
Re: Wrong result with subquery in select list, EXISTS, constant MyISAM/Aria table (exists2in) |
| Comment by Oleksandr Byelkin [ 2011-12-26 ] |
|
Re: Wrong result with subquery in select list, EXISTS, constant MyISAM/Aria table (exists2in) |
| Comment by Oleksandr Byelkin [ 2011-12-27 ] |
|
Re: Wrong result with subquery in select list, EXISTS, constant MyISAM/Aria table |
| Comment by Oleksandr Byelkin [ 2011-12-27 ] |
|
Re: Wrong result with subquery in select list, EXISTS, constant MyISAM/Aria table Also wrong. |
| Comment by Rasmus Johansson (Inactive) [ 2012-01-10 ] |
|
Launchpad bug id: 908269 |