• igor@olga.mysql.com's avatar
    Fixed bug #26560. · 08efa4e0
    igor@olga.mysql.com authored
    The flag alias_name_used was not set on for the outer references
    in subqueries. It resulted in replacement of any outer reference
    resolved against an alias for a full field name when the frm 
    representation of a view with a subquery was generated. 
    If the subquery and the outer query referenced the same table in
    their from lists this replacement effectively changed the meaning
    of the view and led to wrong results for selects from this view. 
    
    Modified several functions to ensure setting the right value of
    the alias_name_used flag for outer references resolved against
    aliases.
     
    08efa4e0
item.cc 180 KB