ERR_Packet
ERR_Packet
ERR_Packet indicates that an error occured.
Fields
- int<1> ERR_Packet header = 0xFF
- int<2> error code. see error list
- if (errorcode == 0xFFFF) /* progress reporting */
- int<1> stage
- int<1> max_stage
- int<3> progress
- string<lenenc> progress_info
- int<1> stage
- else
- if (next byte = '#')
- string<1> sql state marker '#'
- string<5>sql state
- string<EOF> human-readable error message
- string<1> sql state marker '#'
- else
- string<EOF> human-readable error message
- string<EOF> human-readable error message
- if (next byte = '#')
Note that the ERR packet is supposed to send a server error to the client. In particular, all error codes in the range 2000 to 2999 and 5000 to 5999 (inclusive) are reserved for client errors and an ERR packet with such an error code will be considered malformed.
See also
Comments
Comments loading...
Content reproduced on this site is the property of its respective owners,
and this content is not reviewed in advance by MariaDB. The views, information and opinions
expressed by this content do not necessarily represent those of MariaDB or any other party.