Commit 4453a624 authored by ram@gw.mysql.r18.ru's avatar ram@gw.mysql.r18.ru

after review fixup (bug #8129: help.test fails using --ps-protocol)

parent f995a526
...@@ -558,6 +558,10 @@ SQL_SELECT *prepare_simple_select(THD *thd, Item *cond, TABLE_LIST *tables, ...@@ -558,6 +558,10 @@ SQL_SELECT *prepare_simple_select(THD *thd, Item *cond, TABLE_LIST *tables,
{ {
if (!cond->fixed) if (!cond->fixed)
cond->fix_fields(thd, tables, &cond); // can never fail cond->fix_fields(thd, tables, &cond); // can never fail
/* Assume that no indexes cover all required fields */
table->used_keys.clear_all();
SQL_SELECT *res= make_select(table,0,0,cond,error); SQL_SELECT *res= make_select(table,0,0,cond,error);
if (*error || (res && res->check_quick(thd, 0, HA_POS_ERROR)) || if (*error || (res && res->check_quick(thd, 0, HA_POS_ERROR)) ||
(res->quick && res->quick->reset())) (res->quick && res->quick->reset()))
......
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