A service that provides the apis for mysql command error info, mysql_errno, error, sqlstate.
More...
#include <mysql_command_services.h>
A service that provides the apis for mysql command error info, mysql_errno, error, sqlstate.
◆ sql_errno
Calls mysql_errno api to return the number of most recently invoked mysql function.
- Parameters
-
[in] | mysql_h | A valid mysql handle object. |
[out] | *err_no | Stores the error number of last mysql function. |
- Return values
-
◆ sql_error
Calls mysql_error api to return the error message of most recently invoked mysql function.
- Parameters
-
[in] | mysql_h | A valid mysql handle object. |
[out] | *errmsg | Stores the error message of last mysql function. |
- Return values
-
◆ sql_state
Calls mysql_sqlstate api to return the SQLSTATE error code for the last error.
- Parameters
-
[in] | mysql_h | A valid mysql handle object. |
[out] | *sqlstate_errmsg | Stores the SQLSTATE error message of the most recently executed SQL stmt. |
- Return values
-
The documentation for this struct was generated from the following file: