Skip to content

Commit

Permalink
Merge pull request #2 from patterninc/ruby_update_check
Browse files Browse the repository at this point in the history
Updating for keyword arguments as per Ruby 3
  • Loading branch information
satishaher authored Dec 13, 2022
2 parents c74949a + d8f7c95 commit 2f3b4f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/active_record/connection_adapters/odbc_adapter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ def initialize_type_map(map)

# Translate an exception from the native DBMS to something usable by
# ActiveRecord.
def translate_exception(exception, message)
def translate_exception(exception, **message)
error_number = exception.message[/^\d+/].to_i

if error_number == ERR_DUPLICATE_KEY_VALUE
Expand Down

0 comments on commit 2f3b4f6

Please sign in to comment.