Returns the number of errors, warnings, and notes generated during execution of the previous SQL statement.
unsigned int mysql_warning_count(MYSQL *mysql)
The warning count.