From d8f7c9501679c3e66cdecd4e7da9e8b0723ab70e Mon Sep 17 00:00:00 2001 From: Satish Date: Thu, 8 Dec 2022 16:51:46 +0530 Subject: [PATCH] Updating for keyword arguments as per Ruby 3 --- lib/active_record/connection_adapters/odbc_adapter.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/active_record/connection_adapters/odbc_adapter.rb b/lib/active_record/connection_adapters/odbc_adapter.rb index e4887723..fe20d616 100644 --- a/lib/active_record/connection_adapters/odbc_adapter.rb +++ b/lib/active_record/connection_adapters/odbc_adapter.rb @@ -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