Commit 54a1e372 authored by unknown's avatar unknown
Browse files

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().
parent fdae13db
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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;