1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Bug#52177 crash with explain, row comparison, join, text field

The crash is the result of an attempt made by JOIN::optimize to evaluate
the WHERE condition when no records have been actually read.
The fix is to remove erroneous 'outer_join' variable check.
This commit is contained in:
Sergey Glukhov
2010-03-26 11:44:24 +04:00
parent 658cf9e481
commit 1a56ad41f6
3 changed files with 24 additions and 1 deletions

View File

@ -1029,7 +1029,7 @@ JOIN::optimize()
}
}
if (conds &&!outer_join && const_table_map != found_const_table_map &&
if (conds && const_table_map != found_const_table_map &&
(select_options & SELECT_DESCRIBE) &&
select_lex->master_unit() == &thd->lex->unit) // upper level SELECT
{