1mysql_stmt_error(3)           MariaDB Connector/C          mysql_stmt_error(3)
2
3
4
5   Name
6       mysql_stmt_error  - Returns a string description for the last statement
7       error
8
9   Synopsis
10              #include <mysql.h>
11
12              const char * mysql_stmt_error(MYSQL_STMT * stmt);
13
14   Description
15       Returns a string containing the error message for the most recently in‐
16       voked  statement function that can succeed or fail.  The string will be
17       empty if no error occurred.
18
19   Parameter
20       • stmt  -  a  statement  handle,  which  was  previously  allocated  by
21         mysql_stmt_init(3).
22
23   Return value
24       • A string describing the last error or an empty string if no error oc‐
25         cured.
26
27   Notes
28       • Client error messages are listed in the errmsg.h header file,  server
29         error  messages  are  listed in the mysqld_error.h header file of the
30         server source distribution.
31
32   See Also
33mysql_stmt_errno(3)
34
35mysql_stmt_sqlstate(3)
36
37
38
39Version 3.2.2                                              mysql_stmt_error(3)
Impressum