MySQL Connector/Python Developer Guide

11.45 _mysql_connector.MySQL.warning_count() Method

Syntax:

count = ccnx.warning_count()

Returns the number of errors, warnings, and notes produced by the previous SQL statement.