summaryrefslogtreecommitdiff
path: root/sql/protocol.cc
diff options
context:
space:
mode:
authorSergei Golubchik <sergii@pisem.net>2013-06-12 22:12:09 +0200
committerSergei Golubchik <sergii@pisem.net>2013-06-12 22:12:09 +0200
commit1098184c47674481a397af86054fb3fb15a89b77 (patch)
tree41ac3aed47091b28a616e356ceb73640613f0032 /sql/protocol.cc
parentc40b7694d0dbb0781ee7578b5a44f412ce8dae64 (diff)
downloadmariadb-git-1098184c47674481a397af86054fb3fb15a89b77.tar.gz
MDEV-4604 Wrong server status when sending out parameters
reset SERVER_MORE_RESULTS_EXISTS *after* sending the OUT packet to the client. the next packet will be the last one. patch by Georg Richter.
Diffstat (limited to 'sql/protocol.cc')
-rw-r--r--sql/protocol.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/sql/protocol.cc b/sql/protocol.cc
index 3af7dc88b88..2f19843e3e2 100644
--- a/sql/protocol.cc
+++ b/sql/protocol.cc
@@ -1546,14 +1546,14 @@ bool Protocol_binary::send_out_parameters(List<Item_param> *sp_params)
/* Restore THD::server_status. */
thd->server_status&= ~SERVER_PS_OUT_PARAMS;
+ /* Send EOF-packet. */
+ net_send_eof(thd, thd->server_status, 0);
+
/*
Reset SERVER_MORE_RESULTS_EXISTS bit, because this is the last packet
for sure.
*/
thd->server_status&= ~SERVER_MORE_RESULTS_EXISTS;
- /* Send EOF-packet. */
- net_send_eof(thd, thd->server_status, 0);
-
return FALSE;
}