Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug #54305 [Cache][Lock] Identify missing table in pgsql correctly an…
…d address failing integration tests (arifszn) This PR was squashed before being merged into the 5.4 branch. Discussion ---------- [Cache][Lock] Identify missing table in pgsql correctly and address failing integration tests | Q | A | ------------- | --- | Branch? | 5.4 | Bug fix? | yes | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | Deprecations? |no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Issues | | License | MIT ## Description The existing code snippet is as follows: ```php $code = $exception->errorInfo ? $exception->errorInfo[1] : $exception->getCode(); switch (true) { case 'pgsql' === $driver && '42P01' === $code: ``` When we print `$exception->errorInfo[1]`, it yields 7, which is interpreted as false. This behavior has been rectified. ![image](https://github.com/symfony/symfony/assets/45073703/3f928fcb-ba1c-4113-a0d9-b4d04a19bc70) **Additionally, this pull request fixes the integration tests that have been failing persistently until now.** ![image](https://github.com/symfony/symfony/assets/45073703/050fe625-4ff6-423d-9c89-ed183f36e670) Commits ------- 98fe71a [Cache][Lock] Identify missing table in pgsql correctly and address failing integration tests
- Loading branch information