From 844eb33d7be0869590073eb81c5ab55267f9298e Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 9 Feb 2004 16:26:38 +0300 Subject: switch off SERVER_MORE_RESULTS_EXISTS, but don't set other flags: it breaks future extensions --- sql/protocol.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sql/protocol.cc') diff --git a/sql/protocol.cc b/sql/protocol.cc index 2d2736b20d2..bef567ad346 100644 --- a/sql/protocol.cc +++ b/sql/protocol.cc @@ -123,7 +123,7 @@ void send_error(THD *thd, uint sql_errno, const char *err) /* Abort multi-result sets */ thd->lex->found_colon= 0; - thd->server_status= ~SERVER_MORE_RESULTS_EXISTS; + thd->server_status&= ~SERVER_MORE_RESULTS_EXISTS; DBUG_VOID_RETURN; } @@ -356,7 +356,7 @@ send_eof(THD *thd, bool no_flush) other queries (see the if test in dispatch_command / COM_QUERY) */ if (thd->is_fatal_error) - thd->server_status= ~SERVER_MORE_RESULTS_EXISTS; + thd->server_status&= ~SERVER_MORE_RESULTS_EXISTS; int2store(buff+3, thd->server_status); VOID(my_net_write(net,(char*) buff,5)); VOID(net_flush(net)); -- cgit v1.2.1