• Sergei Golubchik's avatar
    cleanup: remove TABLE::add_read_columns_used_by_index · 3cae225b
    Sergei Golubchik authored
    TABLE::add_read_columns_used_by_index() is conceptually wrong,
    it *adds* columns used by index to the bitmap, without clearing
    it first. But it also enables keyread, meaning that *only* columns
    from the index will be read. It is supposed to be used to
    add columns used by an index to a bitmap that already has columns
    of a primary key - for engines where a primary key is part of every
    index.
    
    The correct fix is to change mark_columns_used_by_index() to
    take into account extended keys.
    
    this reverts 1d0acc77 and cf97cbd1
    3cae225b
sql_update.cc 80.6 KB