• Igor Babaev's avatar
    Fixed bug mdev-4420. · 540eeebb
    Igor Babaev authored
    The code of JOIN::optimize that performed substitutions for the best equal
    field in all ref items did not take into account that a multiple equality
    could contain the result of the single-value subquery if the subquery is
    inexpensive. This code was corrected.
    Also made necessary corresponding corrections in the code of make_join_select().
    540eeebb
subselect2.test 18.9 KB