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