Commit 2640e03a authored by unknown's avatar unknown

Fix Bug #9517 Condition pushdown to storage engine does not work for...

Fix Bug #9517  Condition pushdown to storage engine does not work for update/delete, post review fix, removed quick constraint

parent 2fac7a33
...@@ -132,7 +132,7 @@ void init_read_record(READ_RECORD *info,THD *thd, TABLE *table, ...@@ -132,7 +132,7 @@ void init_read_record(READ_RECORD *info,THD *thd, TABLE *table,
if (thd->variables.engine_condition_pushdown && if (thd->variables.engine_condition_pushdown &&
select && select->cond && select && select->cond &&
select->cond->used_tables() & table->map && select->cond->used_tables() & table->map &&
!(select->quick || table->file->pushed_cond)) !table->file->pushed_cond)
table->file->cond_push(select->cond); table->file->cond_push(select->cond);
DBUG_VOID_RETURN; DBUG_VOID_RETURN;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment