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

Properly handle cached queries with too many bind parameters #35286

Merged
merged 1 commit into from Feb 16, 2019

Conversation

matthewdunbar
Copy link
Contributor

@matthewdunbar matthewdunbar commented Feb 15, 2019

Summary

This fixes a bug caused by having too many bind parameters in a query. Queries without the query cache already work correctly by switching to using an unprepared statement. This change adds the same bind parameter length check to the QueryCache. See #35251

@kamipo kamipo merged commit 795c0f8 into rails:master Feb 16, 2019
kamipo added a commit that referenced this pull request Feb 16, 2019
Properly handle cached queries with too many bind parameters
@kamipo
Copy link
Member

kamipo commented Feb 16, 2019

Thanks!

kamipo added a commit that referenced this pull request Feb 16, 2019
Properly handle cached queries with too many bind parameters
Copy link

@piradata piradata left a comment

Choose a reason for hiding this comment

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

nice addition!

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.

None yet

3 participants