MySQL 8.4.2
Source Code Documentation
s_mysql_mysql_command_error_info Struct Reference

A service that provides the apis for mysql command error info, mysql_errno, error, sqlstate. More...

#include <mysql_command_services.h>

Public Attributes

mysql_service_status_t(* sql_errno )(MYSQL_H mysql_h, unsigned int *err_no)
 Calls mysql_errno api to return the number of most recently invoked mysql function. More...
 
mysql_service_status_t(* sql_error )(MYSQL_H mysql_h, char **errmsg)
 Calls mysql_error api to return the error message of most recently invoked mysql function. More...
 
mysql_service_status_t(* sql_state )(MYSQL_H mysql_h, char **sqlstate_errmsg)
 Calls mysql_sqlstate api to return the SQLSTATE error code for the last error. More...
 

Detailed Description

A service that provides the apis for mysql command error info, mysql_errno, error, sqlstate.

Member Data Documentation

◆ sql_errno

mysql_service_status_t(* s_mysql_mysql_command_error_info::sql_errno) (MYSQL_H mysql_h, unsigned int *err_no)

Calls mysql_errno api to return the number of most recently invoked mysql function.

Parameters
[in]mysql_hA valid mysql handle object.
[out]*err_noStores the error number of last mysql function.
Return values
truefailure
falsesuccess

◆ sql_error

mysql_service_status_t(* s_mysql_mysql_command_error_info::sql_error) (MYSQL_H mysql_h, char **errmsg)

Calls mysql_error api to return the error message of most recently invoked mysql function.

Parameters
[in]mysql_hA valid mysql handle object.
[out]*errmsgStores the error message of last mysql function.
Return values
truefailure
falsesuccess

◆ sql_state

mysql_service_status_t(* s_mysql_mysql_command_error_info::sql_state) (MYSQL_H mysql_h, char **sqlstate_errmsg)

Calls mysql_sqlstate api to return the SQLSTATE error code for the last error.

Parameters
[in]mysql_hA valid mysql handle object.
[out]*sqlstate_errmsgStores the SQLSTATE error message of the most recently executed SQL stmt.
Return values
truefailure
falsesuccess

The documentation for this struct was generated from the following file: