Skip to content

Commit

Permalink
[COR-3018] Support Rails 7 (localytics#22)
Browse files Browse the repository at this point in the history
* Support add_column in migrations

* Remove testing code
  • Loading branch information
bfredenburg authored Feb 20, 2023
1 parent e3ec758 commit dbe56e2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/active_record/connection_adapters/odbc_adapter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,8 @@ def translate_exception(exception, message:, sql:, binds:)
# work with non-string keys, and in our case the keys are (almost) all
# numeric
def alias_type(map, new_type, old_type)
map.register_type(new_type) do |_, *args|
map.lookup(old_type, *args)
map.register_type(new_type) do |_|
map.lookup(old_type)
end
end

Expand Down
2 changes: 1 addition & 1 deletion lib/odbc_adapter/quoting.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def quoted_date(value)
end

def lookup_cast_type_from_column(column) # :nodoc:
type_map.lookup(column.type, column)
type_map.lookup(column.type)
end

def quote_hash(hash:)
Expand Down

0 comments on commit dbe56e2

Please sign in to comment.