1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-24 11:21:21 +03:00

WL#2353 EXPLAIN support for condition pushdown

This commit is contained in:
mskold@mysql.com
2005-03-14 15:26:10 +01:00
parent ca3391c7e7
commit 7092c7dec2
3 changed files with 784 additions and 9 deletions

View File

@@ -13008,7 +13008,21 @@ static void select_describe(JOIN *join, bool need_tmp_table, bool need_order,
extra.append(')');
}
else if (tab->select->cond)
extra.append("; Using where");
{
const COND *pushed_cond= tab->table->file->pushed_cond;
if (thd->variables.engine_condition_pushdown && pushed_cond)
{
extra.append("; Using where with pushed condition");
if (thd->lex->describe & DESCRIBE_EXTENDED)
{
extra.append(": ");
((COND *)pushed_cond)->print(&extra);
}
}
else
extra.append("; Using where");
}
}
if (key_read)
{