Skip to main content

parse_stmt_prepare_ok

Function parse_stmt_prepare_ok 

Source
pub fn parse_stmt_prepare_ok(data: &[u8]) -> Option<StmtPrepareOk>
Expand description

Parse a COM_STMT_PREPARE_OK response.

§Format

  • Status: 0x00 (1 byte)
  • Statement ID (4 bytes)
  • Number of columns (2 bytes)
  • Number of parameters (2 bytes)
  • Reserved: 0x00 (1 byte)
  • Warning count (2 bytes, if CLIENT_PROTOCOL_41)

§Returns

Some(StmtPrepareOk) if parsing succeeds, None if data is malformed.