EPUB | CHM | PDF

TMySQLDatabase.Properties.WarningsCount

Top Previous Next

note Since v2.7.4

Returns number of warnings issued by server for latest query.

Syntax:

property WarningsCount : Word;

Description:

Examine this property value after running query to check if there are any warnings issued by server for this query. If there are any warnings (WarningsCount > 0) then SHOW WARNINGS query could be run to retrieve warnings list.

warning Warnings are supported since MySQL 4.1. So if you use MySQL version prior to 4.1 WarningsCount property value is always zero.