BaseResult::getWarningsFetch warnings from last operation Description
abstract public array mysql_xdevapi\BaseResult::getWarnings()
Fetches warnings generated by MySQL server's last operation. ParametersThis function has no parameters. Return ValuesAn array of Warning objects from the last operation. Each object defines an error 'message', error 'level', and error 'code'. An empty array is returned if no errors are present. ExamplesExample #1 mysql_xdevapi\RowResult::getWarnings example
The above example will output something similar to: Array ( [0] => mysql_xdevapi\Warning Object ( [message] => Division by 0 [level] => 2 [code] => 1365 ) [1] => mysql_xdevapi\Warning Object ( [message] => Division by 0 [level] => 2 [code] => 1365 ) ) |