diff options
author | Sergei Golubchik <sergii@pisem.net> | 2011-10-19 22:52:01 +0200 |
---|---|---|
committer | Sergei Golubchik <sergii@pisem.net> | 2011-10-19 22:52:01 +0200 |
commit | d649d0cc8cfec03e2f4d4a8e44f334124e743af8 (patch) | |
tree | 0757d001c571123df9f3385e6b74366dabbc8abf /sql/sql_signal.cc | |
parent | 69e076ec787f0d6ca38a46cd86c5a4999fe33ab0 (diff) | |
download | mariadb-git-d649d0cc8cfec03e2f4d4a8e44f334124e743af8.tar.gz |
with introduction of progress reporting, max error number is 65534
Diffstat (limited to 'sql/sql_signal.cc')
-rw-r--r-- | sql/sql_signal.cc | 7 |
1 files 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[]= { |