my_bool mysql_stmt_close(MYSQL_STMT *)
Description
Closes the prepared statement.
mysql_stmt_close()
also
deallocates the statement handle pointed to by
stmt
.
If the current statement has pending or unread results, this function cancels them so that the next query can be executed.
Return Values
Zero if the statement was freed successfully. Nonzero if an error occurred.
Errors
The MySQL server has gone away.
An unknown error occurred.
Example
For the usage of
mysql_stmt_close()
, refer to the
Example from Section 20.9.7.10, “mysql_stmt_execute()
”.
User Comments
Add your own comment.