Commit 5f8d7171 authored by konstantin@mysql.com's avatar konstantin@mysql.com

Minor fix in cursors execution.

parent 4eeaaa90
......@@ -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;
......
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