• unknown's avatar
    Fixed bug #34830: mixed table and field names in Item_ref · d276cd90
    unknown authored
                      and Item_direct_ref constructor calls.
    
    Order of ref->field_name and ref->table_name arguments
    is of Item_ref and Item_direct_ref in the fix_inner_refs
    function is inverted.
    
    
    sql/sql_select.cc:
      Fixed bug #34830: mixed table and field names in Item_ref
                        and Item_direct_ref constructor calls.
      
      Order of ref->field_name and ref->table_name arguments
      is of Item_ref and Item_direct_ref in the fix_inner_refs
      function is inverted. See definitions:
      
        Item_ref(Name_resolution_context *context_arg, Item **item,
                 const char *table_name_arg, const char *field_name_arg,
                 bool alias_name_used_arg= FALSE)
        and
      
        Item_direct_ref(Name_resolution_context *context_arg, Item **item,
                        const char *table_name_arg,
                        const char *field_name_arg,
                        bool alias_name_used_arg= FALSE)
    d276cd90
sql_select.cc 499 KB