Skip to content

[Cache] fix pruning pdo cache for vendors that throw on execute #30050

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 1, 2019
Merged

[Cache] fix pruning pdo cache for vendors that throw on execute #30050

merged 1 commit into from
Feb 1, 2019

Conversation

bendavies
Copy link
Contributor

Q A
Branch? 4.2
Bug fix? yes
New feature? no
BC breaks? no >
Deprecations? no
Tests pass? yes
Fixed tickets
License MIT
Doc PR

This additionally fixes pruning of the PdoAdapter when the table does not exist.
Similar to #29900 #30005 and f419851

@bendavies bendavies changed the base branch from master to 4.2 January 31, 2019 15:10
@bendavies bendavies changed the title fix pruning pdo cache for vendors that throw on execute [Cache] fix pruning pdo cache for vendors that throw on execute Jan 31, 2019
@OskarStark
Copy link
Contributor

Shouldnt be a test added/updated?

@bendavies
Copy link
Contributor Author

bendavies commented Jan 31, 2019

in honestly, i did not check for existing tests as previous fixes for this issue (linked above) added no tests.

@OskarStark
Copy link
Contributor

Maybe this is the reason why this bug occurred afterwards 🙃

@nicolas-grekas
Copy link
Member

nicolas-grekas commented Feb 1, 2019

This is already tested - just not on mysql - and we're not going to add a multi-DB infra for this :)

@nicolas-grekas
Copy link
Member

Thank you @bendavies.

@nicolas-grekas nicolas-grekas merged commit 14b9fa5 into symfony:4.2 Feb 1, 2019
nicolas-grekas added a commit that referenced this pull request Feb 1, 2019
…ecute (bendavies)

This PR was merged into the 4.2 branch.

Discussion
----------

[Cache] fix pruning pdo cache for vendors that throw on execute

| Q             | A
| ------------- | ---
| Branch?       | 4.2
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no >
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets |
| License       | MIT
| Doc PR        |

This additionally fixes pruning of the PdoAdapter when the table does not exist.
Similar to #29900 #30005 and f419851

Commits
-------

14b9fa5 fix pruning pdo cache for vendors that throw on execute
@fabpot fabpot mentioned this pull request Feb 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants