getWarnings() Method

Returns an array of warnings for the connection.

Returns

Returns an array of warnings. Each warning is an object with code, message, and sqlState properties.

Remarks

Each connection stores warnings that are generated by database operations. Use this method to get the warnings generated for the current connection. This method is a non-blocking method and does not support a callback. After you call this function, the connection clears all warnings.