src/Context/SQLHandler.php
public function throwErrorIfNoRowsAffected($sqlStatement, $ignoreDuplicate = false)
    {
        if (! $this->hasFetchedRows($sqlStatement)) {
            $error = print_r($sqlStatement->errorInfo(), true);

            if ($ignoreDuplicate and preg_match('/duplicate/i', $error)) {
                return $sqlStatement->errorInfo();
            }

            throw new \Exception(
                sprintf(
                    'No rows were effected!%sSQL: "%s",%sError: %s',
                    PHP_EOL,
                    $sqlStatement->queryString,
                    PHP_EOL,
                    $error
                )
            );
        }

        return false;
    }
public function throwErrorIfNoRowsAffected($sqlStatement, $ignoreDuplicate = false)
    {
        if (! $this->hasFetchedRows($sqlStatement)) {
            $error = print_r($sqlStatement->errorInfo(), true);

            if ($ignoreDuplicate and preg_match('/duplicate/i', $error)) {
                return $sqlStatement->errorInfo();
            }

            throw new \Exception(
                sprintf(
                    'No rows were effected!%sSQL: "%s",%sError: %s',
                    PHP_EOL,
                    $sqlStatement->queryString,
                    PHP_EOL,
                    $error
                )
            );
        }

        return false;
    }
public function throwErrorIfNoRowsAffected ( $ sqlStatement , $ ignoreDuplicate = false ) { if ( ! $ this -> hasFetchedRows ( $ sqlStatement ) ) { $ error = print_r ( $ sqlStatement -> errorInfo ( ) , true ) ; if ( $ ignoreDuplicate and preg_match ( '/duplicate/i' , $ error ) ) { return $ sqlStatement -> errorInfo ( ) ; } throw new \ Exception ( sprintf ( 'No rows were effected!%sSQL: "%s",%sError: %s' , PHP_EOL , $ sqlStatement -> queryString , PHP_EOL , $ error ) ) ; } return false ; }
Check for any mysql errors.
Check for any mysql errors .