1
0
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:
Sergey Petrunya
2012-05-11 18:13:06 +04:00
parent 6fae4447f0
commit 6bce336624
6 changed files with 80 additions and 11 deletions

View File

@ -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