Proposed fix for bug #5003 (subselect with MIN() and LIKE crashes server)
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.
Showing
Please register or sign in to comment