Bug #35767 | Processing of uncorrelated subquery with semi-join cause wrong result and crash | ||
---|---|---|---|
Submitted: | 2 Apr 2008 10:55 | Modified: | 20 Nov 2010 23:06 |
Reporter: | Alexey Stroganov | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Optimizer | Severity: | S1 (Critical) |
Version: | 6.0.5pre | OS: | Any |
Assigned to: | Sergey Petrunya | CPU Architecture: | Any |
[2 Apr 2008 10:55]
Alexey Stroganov
[5 Apr 2008 23:19]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/44956 ChangeSet@1.2624, 2008-04-06 03:19:24+04:00, sergefp@mysql.com +3 -0 BUG#35767 "Processing of uncorrelated subquery with semi-join cause wrong result and crash" - When calling left_expr->fix_fields(), set the context to point to the parent select (as left expression of IN subquery is located in the context of the parent select), in the same manner as Item_in_subselect:: single_value_transformer does. Also set thd->where appropriately.
[28 May 2008 10:02]
Bugs System
Pushed into 6.0.6-alpha
[30 May 2008 18:24]
Paul DuBois
Noted in 6.0.6 changelog. Processing of an uncorrelated subquery using semi-join could cause incorrect results or a server crash.
[16 Aug 2010 6:42]
Bugs System
Pushed into mysql-next-mr (revid:alik@sun.com-20100816062819-bluwgdq8q4xysmlg) (version source revid:alik@sun.com-20100816062612-enatdwnv809iw3s9) (pib:20)
[13 Nov 2010 16:27]
Bugs System
Pushed into mysql-trunk 5.6.99-m5 (revid:alexander.nozdrin@oracle.com-20101113155825-czmva9kg4n31anmu) (version source revid:vasil.dimov@oracle.com-20100629074804-359l9m9gniauxr94) (merge vers: 5.6.99-m4) (pib:21)
[20 Nov 2010 23:06]
Paul DuBois
Noted in 5.6.1 changelog.
[23 Nov 2010 2:08]
Paul DuBois
Correction: No 5.6.1 changelog entry. Bug does not appear in any released 5.6.x version.