Skip to content
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

Getting an ArgumentError when passing an exception message back to mysql adapter in Rails 7.0.4 #14

Open
mozcomp opened this issue Feb 29, 2024 · 1 comment

Comments

@mozcomp
Copy link

mozcomp commented Feb 29, 2024

ArgumentError: wrong number of arguments (given 2, expected 1; required keywords: message, sql, binds)
when error raised without transaction isolation conflict

transaction_isolation-1.0.5/lib/transaction_isolation/active_record/connection_adapters/mysql2_adapter.rb:59

translate_exception_without_transaction_isolation_conflict( exception, message )

Signature for translate_exception method looks to have changed to named arguments ...

activerecord-7.0.4.3/lib/active_record/connection_adapters/mysql2_adapter.rb:161

def translate_exception(exception, message:, sql:, binds:)

@iagopiimenta
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants