From 7a528488915786f56ab48e2995fae18cc9731d1a Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 20 Jan 2005 10:41:37 +0200 Subject: Fixed problem of sending ERROR to client after OK or EOF (BUG#6804) include/mysql_com.h: Flag which prevent sending error after EOF or OK sent mysql-test/r/kill.result: test of blocking of sending ERROR after OK or EOF mysql-test/t/kill.test: test of blocking of sending ERROR after OK or EOF sql/item_func.cc: typo fixed sql/net_serv.cc: initialization of flag sql/protocol.cc: check and set of flag no_send_error sql/sql_parse.cc: droping flag no_send_error before new command/query execution --- include/mysql_com.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/mysql_com.h') diff --git a/include/mysql_com.h b/include/mysql_com.h index 59b2ee743ec..78d71bde1cf 100644 --- a/include/mysql_com.h +++ b/include/mysql_com.h @@ -187,6 +187,11 @@ typedef struct st_net { char save_char; my_bool no_send_ok; /* For SPs and other things that do multiple stmts */ my_bool no_send_eof; /* For SPs' first version read-only cursors */ + /* + Set if OK packet is already sent, and we do not need to send error + messages + */ + my_bool no_send_error; /* Pointer to query object in query cache, do not equal NULL (0) for queries in cache that have not stored its results yet -- cgit v1.2.1