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
Getting invalid connection option "prepared_statement" (PG::Error) #8784
Comments
What is you |
|
The name of option is |
thanks ! |
This does though raise an issue @rafaelfranca , in the past you could hang additional options off connection and now you can not so I think this should be re-opened. For example for my multisite stuff I hang this off the connection: host: site.com in 4 its going to cause breakage, on one hand the change is good, cause it helps you catch typos, on the other hand it does not allow you to hang additional info off the connection you may want in other spots. |
I didn't get your problem. Could you explain better what you can't do now? |
If my config is:
afaik in rails 3.2 it works, in 4 it fails. I want an option in database.yml that is ignored by postgres I need to look at the code, but as far as I can tell from this bug, it seems there was some whitelisting of params that happened in 3.2 that no longer happens in 4. |
I don't think we should support this, the database configuration is supposed to be used only to database configuration. If you want to store data I don't think this is the right place. |
I can work around this in my gem, but pool and adapter are already options that are not passed all the way into the pg provider and stripped out. Is there a mechanism for my gem to expand on what I call "db configuration", for me I am saying the db "developement" is only for users that hit the host "site.com" Additionally, this is a big breaking change, the error message really should be improved somehow if possible. |
@SamSaffron I'm discussing to change this from backlist to whitelist, so you will not need to work around. |
Thanks! |
Just attempted to upgrade to Rails 4 and got:
pg 0.14.1 is in Gemfile.lock
The text was updated successfully, but these errors were encountered: