-
Notifications
You must be signed in to change notification settings - Fork 21.4k
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
connection.select_all binds regression #27923
Comments
What did this do prior to 5.0.1? |
|
I found new syntax for 'exec_query' binds in Rails 5.0 universal solution for Rails 5.0.1 and older versions
or create function
and use it
|
|
This sample (simple) for reproduce problem for others. |
The connection/adapter API is lower level than the model API, but it's still a published API. |
Got it. It was a breaking change in 5.0 but I'm more inclined to not make the behavior backwards compatible. But it should be worth to document what is the current API to use this method. Could you open a PR with the documentation? |
As a second part we can restore the behavior where binds are arrays in all the public methods that accept binds |
I think you just need to specify this in the documentation. |
@matthewd had a good point that we still can make it backwards compatible. So I marked it as a regression. |
#27939 fixes the regression. |
Steps to reproduce
Expected behavior
This normally work in Rails 4.2.7.1
Actual behavior
System configuration
Rails version:
5.0.1
Ruby version:
ruby 2.3.1
The text was updated successfully, but these errors were encountered: