• Igor Babaev's avatar
    MDEV-19820 Wrong result with multiple single column index request · 1a518aa1
    Igor Babaev authored
    The bug occured when the optimizer decided to use a rowid filter built
    by a range index scan to access an InnoDB table with generated clustered
    index.
    When a table is accessed by a secondary index Idx employing a rowid filter the
    the value of pk contained in the found index tuple is checked against the
    filter. A call of the handler function position is supposed to put the
    pk value into the handler::ref buffer. However for generated clustered
    primary keys it did not happened. The patch fixes this problem.
    1a518aa1
sql_select.cc 924 KB