Skip to content

Commit c1fc92e

Browse files
committed
Merge branch '6.4' into 7.0
* 6.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 [Mailer] [Brevo] Check that tags is present in payload before calling setTags [Serializer] Fix object normalizer when properties has the same name as their accessor
2 parents 6f8cc9c + 53f0dbf commit c1fc92e

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
@@ -232,10 +232,10 @@ private function getCurrentTimestampStatement(): string
232232
private function isTableMissing(\PDOException $exception): bool
233233
{
234234
$driver = $this->getDriver();
235-
$code = $exception->errorInfo ? $exception->errorInfo[1] : $exception->getCode();
235+
[$sqlState, $code] = $exception->errorInfo ?? [null, $exception->getCode()];
236236

237237
return match ($driver) {
238-
'pgsql' => '42P01' === $code,
238+
'pgsql' => '42P01' === $sqlState,
239239
'sqlite' => str_contains($exception->getMessage(), 'no such table:'),
240240
'oci' => 942 === $code,
241241
'sqlsrv' => 208 === $code,

0 commit comments

Comments
 (0)