Commit 122d0701 authored by Oleksandr Byelkin's avatar Oleksandr Byelkin

MDEV-11761: CLIENT_DEPRECATE_EOF : Client must identify a "stored procedure output resultset"

fix proposed by Diego
parent 5dd4d663
...@@ -1617,16 +1617,14 @@ bool Protocol_binary::send_out_parameters(List<Item_param> *sp_params) ...@@ -1617,16 +1617,14 @@ bool Protocol_binary::send_out_parameters(List<Item_param> *sp_params)
if (write()) if (write())
return TRUE; return TRUE;
/* Restore THD::server_status. */
thd->server_status&= ~SERVER_PS_OUT_PARAMS;
ret= net_send_eof(thd, thd->server_status, 0); ret= net_send_eof(thd, thd->server_status, 0);
/* /*
Reset SERVER_MORE_RESULTS_EXISTS bit, because this is the last packet Reset server_status:
for sure. - SERVER_MORE_RESULTS_EXISTS bit, because this is the last packet for sure.
- Restore SERVER_PS_OUT_PARAMS status.
*/ */
thd->server_status&= ~SERVER_MORE_RESULTS_EXISTS; thd->server_status&= ~(SERVER_PS_OUT_PARAMS | SERVER_MORE_RESULTS_EXISTS);
return ret ? FALSE : TRUE; return ret ? FALSE : TRUE;
} }
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