All pages
Powered by GitBook
1 of 1

Loading...

ERR_Packet

The ERR_Packet is sent by the server to report an error, containing a numeric error code, SQL state marker, and a human-readable error message.

ERR_Packet indicates that an error occurred.

Fields

  • int<1> ERR_Packet header = 0xFF.

  • error code. see .

  • If (error code == 0xFFFF) /* progress reporting */:

    • stage.

    • max_stage.

    • progress.

  • Else:

    • If (next byte = '#'):

      • sql state marker '#'.

      • sql state.

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

This page is licensed: CC BY-SA / Gnu FDL

string progress_info.

string human-readable error message.

  • Else:

    • string human-readable error message.

  • int<2>
    error list
    int<1>
    int<1>
    int<3>
    string<1>
    string<5>
    "Progress reporting"