DocResult::getWarningsGet warnings from last operation Description
public Array mysql_xdevapi\DocResult::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\DocResult::getWarnings example
The above example will output something similar to: There was an error: Array ( [0] => mysql_xdevapi\Warning Object ( [message] => Something bad and so on [level] => 2 [code] => 1365 ) [1] => mysql_xdevapi\Warning Object ( [message] => Something bad and so on [level] => 2 [code] => 1365 ) ) |