(mysql.info) mysql-errno
Info Catalog
(mysql.info) mysql-eof
(mysql.info) c-api-functions
(mysql.info) mysql-error
22.2.3.14 `mysql_errno()'
.........................
`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. A return value of zero means that no error occurred. Client
error message numbers are listed in the MySQL `errmsg.h' header file.
Server error message numbers are listed in `mysqld_error.h'. Errors
also are listed at error-handling.
Note that some functions like `mysql_fetch_row()' don't set
`mysql_errno()' if they succeed.
A rule of thumb is that all functions that have to ask the server for
information reset `mysql_errno()' if they succeed.
*Return Values*
An error code value for the last `mysql_XXX()' call, if it failed. zero
means no error occurred.
*Errors*
None.
Info Catalog
(mysql.info) mysql-eof
(mysql.info) c-api-functions
(mysql.info) mysql-error
automatically generated byinfo2html