-
Notifications
You must be signed in to change notification settings - Fork 53
fix: use internal_execute instead of execute_and_clear #377
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
fix: use internal_execute instead of execute_and_clear #377
Conversation
it was removed in rails/rails@fd24e5b
Thanks for submitting this! Could you add more information in the PR description that describes what functionality was broken? i.e., provide an example code snippet that was having issues or provide the error that you encountered before making this patch? This will help us with documenting the bugfix in release notes. |
I have updated the PR description, let me know if you need more details. |
@rafiss I think the tests failed due to some flakiness. Any chance you can rerun it and let me know if there is anything else that needs to be done here? |
I've rerun the tests. But by looking at them, the fairness_by_group test has already failed in other branches so I would merge this PR confidentely. Could you add a one-liner for the |
Thanks for your contribution! We should make an 8.0.2 release for this adapter. |
Looks like it got merged before I could update the |
We'll fix that later no big deal, thank you @Maimer! |
I do not have sufficient permissions. In the meantime you could refer to the commit in your gemfile ( |
Thanks, I'll have to wait for @rafiss to publish. Using a git referenced gem doesn't allow me to verify the checksum of the gem itself, so while it's useful for testing / development, it's not the best practice for production. |
@rafiss could you help cut out a release? |
v8.0.2 has been published: https://rubygems.org/gems/activerecord-cockroachdb-adapter/versions/8.0.2 |
When updating
rails
to8.0.2
(or8.0.0
or8.0.1
) and udpatingactiverecord-cockroachdb-adapter
to the corresponding version of either8.0.0
or8.0.1
in my application it failed to be able to create a database from scratch.Running the command:
bundle exec db:drop db:create db:migrate
Results in the following error:
When looking at the
activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
I see that it had been removed in the following commit: rails/rails@fd24e5b and replaced with usage of theinternal_execute
command instead, which is part of a larger PR: rails/rails#52428 that is looking to standardize the interface of the various database adapters.