src/ORM/Connect/PDOConnector.php
protected function hasError($resource)
    {
        // No error if no resource
        if (empty($resource)) {
            return false;
        }

        // If the error code is empty the statement / connection has not been run yet
        $code = $resource->errorCode();
        if (empty($code)) {
            return false;
        }

        // Skip 'ok' and undefined 'warning' types.
        // @see http://docstore.mik.ua/orelly/java-ent/jenut/ch08_06.htm
        return $code !== '00000' && $code !== '01000';
    }
protected function hasError($resource)
    {
        // No error if no resource
        if (empty($resource)) {
            return false;
        }

        // If the error code is empty the statement / connection has not been run yet
        $code = $resource->errorCode();
        if (empty($code)) {
            return false;
        }

        // Skip 'ok' and undefined 'warning' types.
        // @see http://docstore.mik.ua/orelly/java-ent/jenut/ch08_06.htm
        return $code !== '00000' && $code !== '01000';
    }
protected function hasError ( $ resource ) { // No error if no resource if ( empty ( $ resource ) ) { return false ; } // If the error code is empty the statement / connection has not been run yet $ code = $ resource -> errorCode ( ) ; if ( empty ( $ code ) ) { return false ; } // Skip 'ok' and undefined 'warning' types. // @see http://docstore.mik.ua/orelly/java-ent/jenut/ch08_06.htm return $ code !== '00000' && $ code !== '01000' ; }
Determine if a resource has an attached error

@param PDOStatement|PDO $resource the resource to check
@return boolean Flag indicating true if the resource has an error
Determine if a resource has an attached error