Backported from maria-5.5 the fix in the patch for mdev-4418 that

had been discovered when merging the patch from 5.3 into 5.5.
This commit is contained in:
Igor Babaev 2013-08-19 14:24:48 -07:00
commit 008371b627

View file

@ -1219,10 +1219,7 @@ JOIN::optimize()
zero_result_cause=
"Impossible WHERE noticed after reading const tables";
select_lex->mark_const_derived(zero_result_cause);
if (select_options & SELECT_DESCRIBE)
{
conds=new Item_int((longlong) 0,1);
}
conds=new Item_int((longlong) 0,1);
goto setup_subq_exit;
}
}