• evgen@moonbone.local's avatar
    Fix bug#7672 Unknown column error in order clause · 6bfc2d4b
    evgen@moonbone.local authored
    When fixing Item_func_plus in ORDER BY clause field c is searched in all
    opened tables, but because c is an alias it wasn't found there.
    
    This patch adds a flag to select_lex which allows Item_field::fix_fields() 
    to look up in select's item_list to find aliased fields.
    6bfc2d4b
sql_lex.cc 25.4 KB