From d649d0cc8cfec03e2f4d4a8e44f334124e743af8 Mon Sep 17 00:00:00 2001 From: Sergei Golubchik Date: Wed, 19 Oct 2011 22:52:01 +0200 Subject: [PATCH] with introduction of progress reporting, max error number is 65534 --- sql/sql_signal.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sql/sql_signal.cc b/sql/sql_signal.cc index 09e9a828fa1..ed42110f7f6 100644 --- a/sql/sql_signal.cc +++ b/sql/sql_signal.cc @@ -22,10 +22,11 @@ /* The parser accepts any error code (desired) The runtime internally supports any error code (desired) - The client server protocol is limited to 16 bits error codes (restriction) - Enforcing the 65535 limit in the runtime until the protocol can change. + The client server protocol is limited to 16 bits error codes (restriction), + and the value of 65535 is reserved for progress reporting. + Enforcing the 65534 limit in the runtime until the protocol can change. */ -#define MAX_MYSQL_ERRNO UINT_MAX16 +#define MAX_MYSQL_ERRNO 65534 const LEX_STRING Diag_condition_item_names[]= {