summaryrefslogtreecommitdiff
path: root/sql/sql_help.cc
diff options
context:
space:
mode:
authorunknown <ram@gw.mysql.r18.ru>2005-01-26 16:02:19 +0400
committerunknown <ram@gw.mysql.r18.ru>2005-01-26 16:02:19 +0400
commit662823c2097654f6bc92deef0d2777ab9d8a20ac (patch)
tree9826f15d950bfe80e7e395f4181991ce6ee8ba0e /sql/sql_help.cc
parent54a1e372e13035cb22453f0bfb9102ee9e4297ea (diff)
downloadmariadb-git-662823c2097654f6bc92deef0d2777ab9d8a20ac.tar.gz
after review fixup (bug #8129: help.test fails using --ps-protocol)
Diffstat (limited to 'sql/sql_help.cc')
-rw-r--r--sql/sql_help.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/sql/sql_help.cc b/sql/sql_help.cc
index ff2f5bf4992..759b535da53 100644
--- a/sql/sql_help.cc
+++ b/sql/sql_help.cc
@@ -558,6 +558,10 @@ SQL_SELECT *prepare_simple_select(THD *thd, Item *cond, TABLE_LIST *tables,
{
if (!cond->fixed)
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);
if (*error || (res && res->check_quick(thd, 0, HA_POS_ERROR)) ||
(res->quick && res->quick->reset()))