Commit df64ac0b authored by unknown's avatar unknown

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
...@@ -1779,6 +1779,7 @@ Cursor::open(JOIN *join_arg) ...@@ -1779,6 +1779,7 @@ Cursor::open(JOIN *join_arg)
thd->server_status&= ~SERVER_STATUS_CURSOR_EXISTS; thd->server_status&= ~SERVER_STATUS_CURSOR_EXISTS;
/* Prepare JOIN for reading rows. */ /* Prepare JOIN for reading rows. */
join->tmp_table= 0;
join->join_tab[join->tables-1].next_select= setup_end_select_func(join); join->join_tab[join->tables-1].next_select= setup_end_select_func(join);
join->send_records= 0; join->send_records= 0;
join->fetch_limit= join->unit->offset_limit_cnt; join->fetch_limit= join->unit->offset_limit_cnt;
......
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