Commit df64ac0b authored by unknown's avatar unknown
Browse files

Minor fix in cursors execution.


sql/sql_select.cc:
  Fix a discrepancy spotted after the setup_end_select_func patch has been 
  pushed: last join sweep assumes that join->tmp_table is zero.
parent f6853d04
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1779,6 +1779,7 @@ Cursor::open(JOIN *join_arg)
  thd->server_status&= ~SERVER_STATUS_CURSOR_EXISTS;

  /* Prepare JOIN for reading rows. */
  join->tmp_table= 0;
  join->join_tab[join->tables-1].next_select= setup_end_select_func(join);
  join->send_records= 0;
  join->fetch_limit= join->unit->offset_limit_cnt;