Documentation Home
MySQL Internals Manual
Download this Manual
EPUB - 1.2Mb


14.7.8 COM_STMT_RESET

COM_STMT_RESET resets the data of a prepared statement which was accumulated with COM_STMT_SEND_LONG_DATA commands and closes the cursor if it was opened with COM_STMT_EXECUTE

The server will send a OK_Packet if the statement could be reset, a ERR_Packet if not.

COM_STMT_RESET:
COM_STMT_RESET
  direction: client -> server
  response: OK or ERR

  payload:
    1              [1a] COM_STMT_RESET
    4              statement-id

  example:
    05 00 00 00 1a 01 00 00    00                         .........

User Comments
Sign Up Login You must be logged in to post a comment.