summaryrefslogtreecommitdiff
path: root/sql/sql_help.cc
diff options
context:
space:
mode:
authorunknown <ram@gw.mysql.r18.ru>2005-01-26 15:11:55 +0400
committerunknown <ram@gw.mysql.r18.ru>2005-01-26 15:11:55 +0400
commit54a1e372e13035cb22453f0bfb9102ee9e4297ea (patch)
tree94037071b151cdf668d2a724fa9eef2075cef25e /sql/sql_help.cc
parentfdae13db98f63088b90d2b6d2726a81f37560aa3 (diff)
downloadmariadb-git-54a1e372e13035cb22453f0bfb9102ee9e4297ea.tar.gz
a fix (bug #8129: help.test fails using --ps-protocol)
sql/sql_help.cc: a fix (bug #8129: help.test fails using --ps-protocol) In case of 'range' we have to call quick->reset().
Diffstat (limited to 'sql/sql_help.cc')
-rw-r--r--sql/sql_help.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/sql_help.cc b/sql/sql_help.cc
index 7bf28a439b6..ff2f5bf4992 100644
--- a/sql/sql_help.cc
+++ b/sql/sql_help.cc
@@ -559,7 +559,8 @@ SQL_SELECT *prepare_simple_select(THD *thd, Item *cond, TABLE_LIST *tables,
if (!cond->fixed)
cond->fix_fields(thd, tables, &cond); // can never fail
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()))
{
delete res;
res=0;