• Sergei Petrunia's avatar
    MDEV-31403: Server crashes in st_join_table::choose_best_splitting · 928012a2
    Sergei Petrunia authored
    The code in choose_best_splitting() assumed that the join prefix is
    in join->positions[].
    
    This is not necessarily the case. This function might be called when
    the join prefix is in join->best_positions[], too.
    Follow the approach from best_access_path(), which calls this function:
    pass the current join prefix as an argument,
    "const POSITION *join_positions" and use that.
    928012a2
derived_split_innodb.test 11.3 KB