• igor@rurik.mysql.com's avatar
    Fixed bug #18206. · 37e049db
    igor@rurik.mysql.com authored
    The bug report revealed two problems related to min/max optimization:
    1. If the length of a constant key used in a SARGable condition for
    for the MIN/MAX fields is greater than the length of the field an 
    unwanted warning on key truncation is issued;
    2. If MIN/MAX optimization is applied to a partial index, like INDEX(b(4))
    than can lead to returning a wrong result set.
    37e049db
opt_sum.cc 26.3 KB