1mysql_stmt_warning_count(3)   MariaDB Connector/C  mysql_stmt_warning_count(3)
2
3
4
5   Name
6       mysql_stmt_warning_count - Returns the number of warnings from the last
7       executed statement.
8
9   Synopsis
10              #include <mysql.h>
11
12              unsigned int mysql_stmt_warning_count(MYSQL_STMT * stmt);
13
14   Description
15       Returns the number of warnings from the last executed statement, or ze‐
16       ro if there are no warnings.  ## Parameter * stmt - a statement handle,
17       which was previously allocated by mysql_stmt_init(3).
18
19   Return value
20       Returns the number of warnings.
21
22   Notes
23       • For retrieving warning messages you should use the SQL  command  SHOW
24         WARNINGS.
25
26       • If  SQL_MODE  TRADITIONAL is enabled an error instead of warning will
27         be returned.  For detailed information check  the  server  documenta‐
28         tion.  ## History This function was added in Connector/C 3.0.
29
30   See Also
31mysql_warning_count(3)
32
33
34
35Version 3.3.1                                      mysql_stmt_warning_count(3)
Impressum