Structure
MySQLProtocol
struct MySQLProtocol
Topics
Structures
struct BinaryResultSetRowA Binary Protocol Resultset Row is made up of the NULL bitmap containing as many bits as we have columns in the resultset + 2 and the values for columns that are not NULL in the Binary Protocol Value format.struct COM_QUERY14.6.4COM_QUERYstruct COM_QUERY_ResponseThe query-response packet is a meta packet which can be one ofstruct COM_QUITtells the server that the client wants to close the connectionstruct COM_STMT_CLOSECOM_STMT_CLOSEdeallocates a prepared statementstruct COM_STMT_EXECUTECOM_STMT_EXECUTEasks the server to execute a prepared statement as identified by stmt-id.struct COM_STMT_PREPARECOM_STMT_PREPAREcreates a prepared statement from the passed query string.struct COM_STMT_PREPARE_OK14.7.4.1COM_STMT_PREPAREResponsestruct CapabilityFlagsThe capability flags are used by the client and server to indicate which features they support and want to use.struct CharacterSetA character set is defined in the protocol as a integer.struct ColumnDefinition41Protocol::ColumnDefinition41struct ColumnFlagsThese don’t seem to be documented anywhere.struct DataTypeTable 14.4 Column Typesstruct ERR_Packet14.1.3.2ERR_Packetstruct ErrorCodestruct ExecuteFlagsstruct HandshakeV10Protocol::Handshakestruct NullBitmap14.7.2.1 NULL-Bitmapstruct OK_Packet14.1.3.1OK_Packetstruct SSLRequestProtocol::SSLRequest:struct StatusFlagsThe status flags are a bit-field.struct TextResultSetRowProtocolText::ResultsetRow