1mysql_sqlstate(3)             MariaDB Connector/C            mysql_sqlstate(3)
2
3
4
5   Name
6       mysql_sqlstate - returns SQLSTATE error code
7
8   Synopsis
9              #include <mysql.h>
10
11              const char * mysql_sqlstate(MYSQL * mysql);
12
13   Description
14       Returns  a  string  containing the SQLSTATE error code for the most re‐
15       cently invoked function that can succeed or fail.  The error code  con‐
16       sists  of  five  characters.   `00000'  means no error.  The values are
17       specified by ANSI SQL and ODBC
18
19   Parameter
20   Notes
21       Please note that not all client library error codes are mapped to  SQL‐
22       STATE  errors.   Errors  which  can’t  be mapped will returned as value
23       HY000.
24
25   Return value
26       A string containing SQLSTATE error code.
27
28   See also
29mysql_error(3)
30
31mysql_errno(3)
32
33
34
35Version 3.3.1                                                mysql_sqlstate(3)
Impressum