-
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
Postgres adapter passes keywords in a deprecated way (Ruby 2.7, ActiveRecord 6.1.4) #44307
Comments
This can be closed, was fixed in #44346 |
This was merged to main on 8-Feb but is only in the v7 releases. It doesn't appear in the 6.1.x series which were released from 11-Feb, the latest being 6.1.5 on 10-Mar. Is there any chance this could be added to make a 6.1.6? Thanks! |
@rogermarlow did you find a way to use Rails 6.1.x and avoid the keyword argument warnings? It doesn't look like the adapter was changed in 6.1.6. https://github.com/rails/rails/blob/v6.1.6/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb#L78 |
Hi @salbertson, no I didn't. Fortunately it only appears once when I run my test suite, but I would love to get rid of it as I try to keep a policy of zero warnings. (Broken windows and all that...)
If someone could cut a v6.1.7 I'd be very grateful! |
I was going to comment on the PR but it will also be helpful to put this information here. The reason this didn't get backported to 6-1-stable at the time was because only 7.0.x is supported for bug fixes per our maintenance policy. In general we're unlikely to be doing more releases of 6.1.x unless there's a security vulnerability. There was a bugfix release I did last week which was to fix something we broke in the previous security release. So while I can merge this change I can't promise it will be in a release anytime soon. It's probably a good time to prioritize upgrading to Rails 7.0.x and then Ruby 3.1.x. |
Thanks for the information @eileencodes. We're in the process of actioning the deprecation warnings [whist running against Rails 6.1.x] in preparation to upgrade to Rails 7.0.x. I opened #45090 to action this deprecation warning so I could resolve it off my list, but I do appreciate that Rails 6.1.x is no longer supported for bug fixes as per the maintenance policy. If the PR gets merged and there's ever another 6.1.x release, that's great, but I'll make a note that this warning should not impact the upgrade to Rails 7.0.x. |
Steps to reproduce
Run the following ruby script with
RUBYOPT='-W:deprecated'
produces:
Expected behavior
No deprecation warning.
Actual behavior
Shows deprecation warning.
System configuration
Rails version:
Active record 6.1.4.4
Ruby version:
2.7.4
The text was updated successfully, but these errors were encountered: