1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

select.result, func_group.result, sql_select.cc:

After merge fix
This commit is contained in:
evgen@moonbone.local
2006-07-31 23:05:54 +04:00
parent 3ca575dc89
commit b43b2a2fe0
3 changed files with 51 additions and 188 deletions

View File

@ -687,8 +687,9 @@ JOIN::optimize()
Notice that make_cond_for_table() will always succeed to remove all
computed conditions, because opt_sum_query() is applicable only to
conjunctions.
Preserve conditions for EXPLAIN.
*/
if (conds)
if (conds && !(thd->lex->describe & DESCRIBE_EXTENDED))
{
COND *table_independent_conds=
make_cond_for_table(conds, PSEUDO_TABLE_BITS, 0);