Skip to content

Commit

Permalink
Merge pull request #4 from appbrew/pg150
Browse files Browse the repository at this point in the history
fix: deprecation warning about keyword argument init since pg v1.5.0
  • Loading branch information
r-plus authored Oct 12, 2023
2 parents ac7fa29 + 70284a3 commit 95fb1bb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion activerecord6-redshift-adapter.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ Gem::Specification.new do |s|

s.required_ruby_version = '>= 2.7'
s.add_runtime_dependency 'activerecord', '~> 7.0'
s.add_runtime_dependency 'pg', '~> 1.0'
s.add_runtime_dependency 'pg', '~> 1.5.0'
end
2 changes: 1 addition & 1 deletion lib/active_record/connection_adapters/redshift_adapter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -710,7 +710,7 @@ def update_typemap_for_default_timezone
PG::TextDecoder::TimestampWithoutTimeZone
end

@timestamp_decoder = decoder_class.new(@timestamp_decoder.to_h)
@timestamp_decoder = decoder_class.new(**@timestamp_decoder.to_h)
@connection.type_map_for_results.add_coder(@timestamp_decoder)
@default_timezone = ActiveRecord.default_timezone

Expand Down

0 comments on commit 95fb1bb

Please sign in to comment.