• Sreeharsha Ramanavarapu's avatar
    Bug #26867652: INCORRECT BEHAVIOR WITH PREPARE STATEMENT · 84c32cdb
    Sreeharsha Ramanavarapu authored
                   AND PARAM IN ORDER BY
    
    Issue:
    ------
    This issue can occur when the ORDER BY list refers to a
    column that contains a parameter in the select list.
    
    Solution:
    ---------
    In JOIN::update_depend_map and get_sort_by_table, the
    ORDER BY list's used_tables isn't checked for parameters.
    This can result in incorrect behavior.
    
    This is a partial backport of Roy's
    84c32cdb
sql_select.cc 581 KB