Search Results
https://dev.mysql.com/doc/c-api/8.4/en/mysql-errno.html
unsigned int mysql_errno(MYSQL *mysql) Description For the connection specified by mysql, mysql_errno() returns the error code for the most recently invoked API function that can succeed or fail. Client error message numbers are listed in the MySQL ...
https://dev.mysql.com/doc/c-api/8.4/en/mysql-error.html
const char * mysql_error(MYSQL *mysql) Description For the connection specified by mysql, mysql_error() returns a null-terminated string containing the error message for the most recently invoked API function that failed. If a function did not ...
https://dev.mysql.com/doc/c-api/8.4/en/mysql-fetch-field-direct.html
For metadata-optional connections, this function returns NULL when the resultset_metadata system variable is set to NONE. MYSQL_FIELD * mysql_fetch_field_direct(MYSQL_RES *result, unsigned int fieldnr) Description Given a field number fieldnr for a ...
https://dev.mysql.com/doc/c-api/8.4/en/mysql-fetch-field.html
For metadata-optional connections, this function returns NULL when the resultset_metadata system variable is set to NONE. MYSQL_FIELD * mysql_fetch_field(MYSQL_RES *result) Description Returns the definition of one column of a result set as a ...
https://dev.mysql.com/doc/c-api/8.4/en/mysql-fetch-fields.html
For metadata-optional connections, this function returns NULL when the resultset_metadata system variable is set to NONE. MYSQL_FIELD * mysql_fetch_fields(MYSQL_RES *result) Description Returns an array of all MYSQL_FIELD structures for a result ...
https://dev.mysql.com/doc/c-api/8.4/en/mysql-fetch-row.html
Errors Errors are not reset between calls to mysql_fetch_row() CR_SERVER_LOST The connection to the server was lost during the query. MYSQL_ROW mysql_fetch_row(MYSQL_RES *result) Description Note mysql_fetch_row() is a synchronous function. Its ...
https://dev.mysql.com/doc/c-api/8.4/en/mysql-field-count.html
unsigned int mysql_field_count(MYSQL *mysql) Description Returns the number of columns for the most recent query on the connection. The normal use of this function is when mysql_store_result() returned NULL (and thus you have no result set pointer). In this case, you can call mysql_field_count() to determine whether mysql_store_result() should have produced a nonempty ...
https://dev.mysql.com/doc/c-api/8.4/en/mysql-init.html
MYSQL * mysql_init(MYSQL *mysql) Description Allocates or initializes a MYSQL object suitable for mysql_real_connect(). If mysql_init() allocates a new object, it is freed when mysql_close() is called to close the connection. If mysql is a NULL ...
https://dev.mysql.com/doc/c-api/8.4/en/mysql-insert-id.html
The value of mysql_insert_id() is affected only by statements issued within the current client connection. uint64_t mysql_insert_id(MYSQL *mysql) Description Returns the value generated for an AUTO_INCREMENT column by the previous INSERT or UPDATE ...
https://dev.mysql.com/doc/c-api/8.4/en/mysql-kill.html
CR_SERVER_LOST The connection to the server was lost during the query. int mysql_kill(MYSQL *mysql, unsigned long pid) Description Note mysql_kill() is deprecated and is subject to removal in a future version of MySQL. mysql_kill() cannot handle ...