mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
hack removed
This commit is contained in:
@ -1846,8 +1846,7 @@ Cursor::fetch(ulong num_rows)
|
|||||||
switch (error) {
|
switch (error) {
|
||||||
/* Fetch limit worked, possibly more rows are there */
|
/* Fetch limit worked, possibly more rows are there */
|
||||||
case -4:
|
case -4:
|
||||||
if (thd->transaction.all.innobase_tid)
|
ha_release_temporary_latches(thd);
|
||||||
ha_release_temporary_latches(thd);
|
|
||||||
thd->server_status|= SERVER_STATUS_CURSOR_EXISTS;
|
thd->server_status|= SERVER_STATUS_CURSOR_EXISTS;
|
||||||
::send_eof(thd);
|
::send_eof(thd);
|
||||||
thd->server_status&= ~SERVER_STATUS_CURSOR_EXISTS;
|
thd->server_status&= ~SERVER_STATUS_CURSOR_EXISTS;
|
||||||
@ -1860,8 +1859,7 @@ Cursor::fetch(ulong num_rows)
|
|||||||
error= 0;
|
error= 0;
|
||||||
/* fallthrough */
|
/* fallthrough */
|
||||||
case 0: /* No more rows */
|
case 0: /* No more rows */
|
||||||
if (thd->transaction.all.innobase_tid)
|
ha_release_temporary_latches(thd);
|
||||||
ha_release_temporary_latches(thd);
|
|
||||||
close();
|
close();
|
||||||
thd->server_status|= SERVER_STATUS_LAST_ROW_SENT;
|
thd->server_status|= SERVER_STATUS_LAST_ROW_SENT;
|
||||||
::send_eof(thd);
|
::send_eof(thd);
|
||||||
|
Reference in New Issue
Block a user