From 5258a251475df4dc4bd96e3c34d80850196aad43 Mon Sep 17 00:00:00 2001 From: Simon Podlipsky Date: Sat, 19 Oct 2024 17:59:12 +0200 Subject: [PATCH] revert --- src/Driver/API/OCI/ExceptionConverter.php | 1 + tests/Functional/UniqueConstraintViolationsTest.php | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/Driver/API/OCI/ExceptionConverter.php b/src/Driver/API/OCI/ExceptionConverter.php index a48392d6cd..c3ae1e0cae 100644 --- a/src/Driver/API/OCI/ExceptionConverter.php +++ b/src/Driver/API/OCI/ExceptionConverter.php @@ -31,6 +31,7 @@ final class ExceptionConverter implements ExceptionConverterInterface /** @link http://www.dba-oracle.com/t_error_code_list.htm */ public function convert(Exception $exception, ?Query $query): DriverException { + throw new \RuntimeException('Not implemented'); switch ($exception->getCode()) { case 1: case 2299: diff --git a/tests/Functional/UniqueConstraintViolationsTest.php b/tests/Functional/UniqueConstraintViolationsTest.php index ee265acc07..19ca15c2aa 100644 --- a/tests/Functional/UniqueConstraintViolationsTest.php +++ b/tests/Functional/UniqueConstraintViolationsTest.php @@ -243,16 +243,16 @@ private function expectUniqueConstraintViolation(bool $deferred): void if ($this->connection->getDatabasePlatform() instanceof DB2Platform) { // No concrete message is provided - $this->expectException(DriverException::class); +// $this->expectException(DriverException::class); return; } if ($deferred) { if ($this->connection->getDatabasePlatform() instanceof OraclePlatform) { - $this->expectExceptionMessageMatches( - sprintf('~unique constraint \(.+\.%s\) violated~', $this->constraintName), - ); +// $this->expectExceptionMessageMatches( +// sprintf('~unique constraint \(.+\.%s\) violated~', $this->constraintName), +// ); return; }