Skip to content

Commit

Permalink
Update method signature for translate_exception (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
mlarraz authored Nov 23, 2022
1 parent c61e95c commit 0309d0c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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 @@ -192,7 +192,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:, sql:, binds:)
error_number = exception.message[/^\d+/].to_i

if error_number == ERR_DUPLICATE_KEY_VALUE
Expand Down
2 changes: 1 addition & 1 deletion odbc_adapter.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
spec.require_paths = ['lib']

spec.add_dependency 'activerecord', '>= 5.2', '< 8'
spec.add_dependency 'activerecord', '>= 6.0', '< 8'
spec.add_dependency 'ruby-odbc', '~> 0.9'

spec.add_development_dependency 'bundler', '>= 1.14'
Expand Down

0 comments on commit 0309d0c

Please sign in to comment.