with introduction of progress reporting, max error number is 65534

This commit is contained in:
Sergei Golubchik 2011-10-19 22:52:01 +02:00
parent 69e076ec78
commit d649d0cc8c

View File

@ -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[]=
{