-
Notifications
You must be signed in to change notification settings - Fork 54
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
Support Rails 7.1.2 #93
Support Rails 7.1.2 #93
Conversation
`internal_exec_query`: https://github.com/rails/rails/pull/48188/files `raw_execute`: rails/rails@63c0d6b Implementations for these are just copied from the MySQL2 adapter. For `reconnect`, only a stub is present because retries make less sense when offloading to PTOSC
The signature of Migrator has changed again, and does not seem friendly to external usage. Standardization on MigrationContext fixes the missing method issue.
Ref: departurerb#92 Co-authored-by: Katie Edgar <[email protected]>
I updated the target Ruby version to support https://github.com/departurerb/departure/pull/93/files#diff-bc2049c1721297c73775182ffa5184cc75a4da11beea53183cb354db6f8af502R93 which triggered issues in a lot of other files (including some not updated in this PR). Personally, it seems like a good idea to keep the target version equal to the oldest version this library supports, but I can alter the code to avoid |
Co-authored-by: Brian Austin <[email protected]>
Adds new methods to the Percona adapter required by a few changes in Rails 7.1:
raw_execute
: Active Record: clear query cache automatically when calling#execute
rails/rails#48061 reused the implementations from the MySQL2 adapter, but I can add any required customisations.internal_exec_query
: Revert "Merge pull request #48069 from Shopify/ar-exec-query-flush-cache rails/rails#48188 implementation fromexec_query
reconnect
: I only added a stub because retries that way make less sense when offloading to PTOSCOn the tests front, I replaced
ActiveRecord::Migrator
withActiveRecord::MigrationContext
to solve method missing issues.Gemspec/CI changes from #92