Skip to content
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

BUGFIX: Use configured pdo cache tables during flush and garbage collection #2719

Merged
merged 3 commits into from
Mar 23, 2022

Conversation

Sebobo
Copy link
Member

@Sebobo Sebobo commented Mar 2, 2022

What I did

Without this patch using custom table names for the PDO cache backend would cause problems
as some queries didn’t respect the given table names but used the defaults during DELETE
operations. This has been adjusted.

How I did it

Use the configured table names as in all the other queries.

How to verify it

Use the backend with custom table names and try to flush them. Without the change an error would occur if the default tables have never been used and setup.

Checklist

  • Code follows the PSR-2 coding style
  • Tests have been created, run and adjusted as needed
  • The PR is created against the lowest maintained branch

Without this patch using custom table names for
the PDO cache backend would cause problems
as some queries didn’t respect the given table
names but used the defaults during DELETE
operations.
@kdambekalns kdambekalns enabled auto-merge March 21, 2022 18:14
Copy link
Member

@kdambekalns kdambekalns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ouch! Thanks for spotting and fixing!

@kdambekalns kdambekalns merged commit 09ceb1d into neos:6.3 Mar 23, 2022
@Sebobo Sebobo deleted the bugfix/pdo-cache-table-name branch March 23, 2022 10:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

5 participants