You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bug symfony#54305 [Cache][Lock] Identify missing table in pgsql correctly and 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.

**Additionally, this pull request fixes the integration tests that have been failing persistently until now.**

Commits
-------
98fe71a [Cache][Lock] Identify missing table in pgsql correctly and address failing integration tests
0 commit comments