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

Fix for Bug #9246 Condition pushdown and left join, wrong result

This commit is contained in:
unknown
2005-05-09 18:56:29 +02:00
parent 848611b5ed
commit 9e04ebfa99
3 changed files with 10 additions and 1 deletions

View File

@ -5401,10 +5401,12 @@ make_join_select(JOIN *join,SQL_SELECT *select,COND *cond)
if (!(tmp= add_found_match_trig_cond(first_inner_tab, tmp, 0)))
DBUG_RETURN(1);
tab->select_cond=sel->cond=tmp;
/* Push condition to storage engine if this is enabled
and the condition is not guarded */
if (thd->variables.engine_condition_pushdown)
{
COND *push_cond=
make_cond_for_table(cond,current_map,current_map);
make_cond_for_table(tmp,current_map,current_map);
tab->table->file->pushed_cond= NULL;
if (push_cond)
{