-
Notifications
You must be signed in to change notification settings - Fork 319
Rails 7.2 support! #2424
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
base: master
Are you sure you want to change the base?
Rails 7.2 support! #2424
Conversation
|
I've been looking at contains errors for a fork we have at work. The Adding
to The bind_block is essentially what |
@dlagerro Thank you!!!! I knew I was papering over a broader issue in the hopes of being able to resolve other issues here first. I had spent more time on the broader issue but not made the breakthrough you appear to have made. I will look at your proposed change and revert the AREL conversion of the |
Provides the expected :aN formatted bind parameter values needed by oci8. Thanks to dlaggero for this. rsim#2424 (comment)
5370814
to
9d71f41
Compare
Introduce a new `bind_block` method. Mimicking this change in the postgres adapter: rails/rails@2b35775 Provides the expected :aN formatted bind parameter values needed by oci8. Thanks to dlaggero for this. rsim#2424 (comment)
9d71f41
to
72b3419
Compare
The initial connection creation method invocations were re-written to reduce convention by adding an explicit registration mapping between adapter name and class. This implements two. - adapter: oracle_enhanced This is the primary one that people will use. - adapter: oracle This replaces the previous emulate_oracle_adapter database config setting which we can no longer use, since the config is not available when we are registering this adapter name to class mapping, but accomplishes the same end. So if you have 'emulate_oracle_adapter: true` in your configs, remove that, and set your `adapter: oracle`. rails/rails@009c7e7
This makes the quote_column_name and quote_table_names methods organized more similarly to how they are the new mysql and postgres adapters.
Explain now returns an object. We need to coerce it into a string for rspec comparisons. https://blog.saeloun.com/2024/11/21/rails-7-2-adds-support-for-explain-method-to-activerecord-relation/ rails/rails@c1ea574
Introduce a new `bind_block` method. Mimicking this change in the postgres adapter: rails/rails@2b35775 Provides the expected :aN formatted bind parameter values needed by oci8. Thanks to dlaggero for this. rsim#2424 (comment)
72b3419
to
74a8bc2
Compare
@dlagerro's suggestion worked great for the bind parameters issue, and was similar to changes found in the postgres adapter. I've also changed how you invoke the emulate_oracle_adapter feature. You used to have a database config named I believe this PR is ready to go. I welcome feedback. |
These are not supported by Rails 7.2
I have removed ruby 2.7 and 3.0 from the test matrix. They are not compatible with Rails 7.2 |
Would it be worth adding Ruby 3.4 to the test matrix? |
This makes significant progress towards supporting Rails 7.2