• gkodinov@mysql.com's avatar
    BUG#7549: Missing error message for invalid view selection with subquery. · 0486cfbe
    gkodinov@mysql.com authored
    When a view statement is compiled on CREATE VIEW time, most of the 
    optimizations should not be done. Finding the right optimization 
    for a subquery is one of them.
    Unfortunately the optimizer is resolving the column references of 
    the left expression of IN subqueries in the process of deciding 
    witch optimization to use (if needed). So there should be a 
    special case in Item_in_subselect::fix_fields() : check the 
    validity of the left expression of IN subqueries in CREATE VIEW 
    mode and then proceed as normal. 
    0486cfbe
subselect.result 118 KB