• Alexander Barkov's avatar
    Setting Field::field_index for Virtual_tmp_table fields · 705283f7
    Alexander Barkov authored
    Virtial_tmp_table did not set the "field_index" member for its Fields.
    Fixing Virtual_tmp_table::add() to set "field_index" to the Field's ordinal position
    inside the table, like a normal TABLE does, for consistency.
    
    Although, this flaw did not seem to cause any bugs, having field_index properly
    set is helpful for debugging purposes.
    705283f7
sql_select.h 78.6 KB