ERR_Packet
You are viewing an old version of this article. View
the current version here.
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 error code should fall into the valid range or server error messages. The client library will reject error numbers in the ranges 2000–2999 and 5000–5999, because errors in these ranges can only be generated locally on the client.
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.