Skip to content

Commit 53f0dbf

Browse files
committed
Merge branch '5.4' into 6.4
* 5.4: fix tests Drop test case Catch TableNotFoundException in MySQL delete [DoctrineBridge] Fix deprecation warning with ORM 3 when guessing field lengths Throw TransformationFailedException when there is a null bytes injection [Cache][Lock] Identify missing table in pgsql correctly and address failing integration tests [Serializer] Fix object normalizer when properties has the same name as their accessor
2 parents 5dd358c + d1a912e commit 53f0dbf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Store/PdoStore.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,10 +241,10 @@ private function getCurrentTimestampStatement(): string
241241
private function isTableMissing(\PDOException $exception): bool
242242
{
243243
$driver = $this->getDriver();
244-
$code = $exception->errorInfo ? $exception->errorInfo[1] : $exception->getCode();
244+
[$sqlState, $code] = $exception->errorInfo ?? [null, $exception->getCode()];
245245

246246
return match ($driver) {
247-
'pgsql' => '42P01' === $code,
247+
'pgsql' => '42P01' === $sqlState,
248248
'sqlite' => str_contains($exception->getMessage(), 'no such table:'),
249249
'oci' => 942 === $code,
250250
'sqlsrv' => 208 === $code,

0 commit comments

Comments
 (0)