Commit 70482c41 authored by mskold@mysql.com's avatar mskold@mysql.com

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 9189816e
......@@ -132,7 +132,7 @@ void init_read_record(READ_RECORD *info,THD *thd, TABLE *table,
if (thd->variables.engine_condition_pushdown &&
select && select->cond &&
select->cond->used_tables() & table->map &&
!(select->quick || table->file->pushed_cond))
!table->file->pushed_cond)
table->file->cond_push(select->cond);
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