src/Rio/Driver/Pdo/Mysql.php
public function getLastErrorMessage()
    {
        $message = null;
        $error = $this->getConnection()->errorInfo();

        if (is_array($error) && isset($error[2])) {
            $message = $error[2];
        }

        return $message;
    }
public function getLastErrorMessage()
    {
        $message = null;
        $error = $this->getConnection()->errorInfo();

        if (is_array($error) && isset($error[2])) {
            $message = $error[2];
        }

        return $message;
    }
public function getLastErrorMessage ( ) { $ message = null ; $ error = $ this -> getConnection ( ) -> errorInfo ( ) ; if ( is_array ( $ error ) && isset ( $ error [ 2 ] ) ) { $ message = $ error [ 2 ] ; } return $ message ; }
Get last SQL error message

@return string|null
Get last SQL error message