Name
mysql_warning_count( )
Synopsis
unsigned int mysql_warning_count(MYSQL *mysql)
This
returns the number of warning messages encountered from the previous
query. This can be useful, for instance, when performing multiple
INSERT
statements with the
IGNORE
flag.
... MYSQL *mysql; mysql = mysql_init(NULL); mysql_real_connect(mysql,"localhost","root","password", "workrequests",0,NULL,0); ... unsigned int warnings = mysql_warning_count(mysql); printf("Number of Warnings: %d \n", warnings); ...
Get MySQL in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.