mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
MDEV-240: SHOW EXPLAIN: Assertion `this->optimized == 2' failed
- Fix the bug: SHOW EXPLAIN may hit a case where a join is partially optimized. - Change JOIN::optimized to use enum instead of numeric constants
This commit is contained in:
@ -3750,7 +3750,7 @@ int st_select_lex::print_explain(select_result_sink *output,
|
||||
uint8 explain_flags)
|
||||
{
|
||||
int res;
|
||||
if (join && join->optimized == 2)
|
||||
if (join && join->optimized == JOIN::OPTIMIZATION_DONE)
|
||||
{
|
||||
res= join->print_explain(output, explain_flags, TRUE,
|
||||
join->need_tmp, // need_tmp_table
|
||||
|
Reference in New Issue
Block a user