• hf@deer.(none)'s avatar
    Proposed fix for bug #5003 (subselect with MIN() and LIKE crashes server) · 6c136f99
    hf@deer.(none) authored
    We have next problem here:
    active_index is wrong in the subselect's handler on the second val_int() call.
    Optimizer sees that we can use index-read for that kind of condition,
    and matching_cond() (sql/opt_sum.cc) doesn't. I suspect, proper solution is
    to add appropriate code to the matching_cond() but now just added
    missed initialization.
    6c136f99
subselect.test 50.9 KB