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

Pass binds on PostgreSQL exec_query even when prepared statements off globally #41300

Merged
merged 1 commit into from
Feb 2, 2021

Conversation

CodingAnarchy
Copy link
Contributor

Summary

When prepared statements are off globally on PostgreSQL connection adapters, bind variables are dropped in exec_query resulting in errors. These bind variables can be passed into the query instead, which will execute as expected. See #41299, which was closed prematurely.

Other Information

@rafaelfranca rafaelfranca merged commit e5c1ba2 into rails:main Feb 2, 2021
@rafaelfranca
Copy link
Member

This makes sense. Thank you

rafaelfranca added a commit that referenced this pull request Feb 2, 2021
Pass binds on PostgreSQL exec_query even when prepared statements off globally
@CodingAnarchy CodingAnarchy deleted the pg-adapter-fix branch February 2, 2021 14:24
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

2 participants