Closed negipo closed 8 months ago
I have the same issue after upgrading to Rails 7.1, and negipo's solution is working for me as well.
Seems to have been reverted in Rails 7.1.2. https://github.com/rails/rails/pull/48188
@zaru I think the revert was itself reverted - https://github.com/rails/rails/pull/48229
I'm seeing this error when using Rails 7.1.2
Implemented via https://github.com/pennylane-hq/activerecord7-redshift-adapter/commit/0cc13d21e3561af2e6cf25f967f08369a6f0a3fa - thank you for your contribution!
Our project using activerecord7-redshift-adapter and ActiveRecord 7.1.1
In Gemfile.lock:
We cannot query anything because of
NotImplementedError
withinternal_exec_query
:Rails renames
exec_query
intointernal_exec_query
in recent release (https://github.com/rails/rails/pull/48069). activerecord7-redshift-adapter seems implementingexec_query
, it should be renamed.In our case, some monkey patch works.
In config/initializers/monkey_patches/activerecord7_redshift_adapter.rb: