Skip to content

Commit dbe56e2

Browse files
authored
[COR-3018] Support Rails 7 (localytics#22)
* Support add_column in migrations * Remove testing code
1 parent e3ec758 commit dbe56e2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/active_record/connection_adapters/odbc_adapter.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,8 +202,8 @@ def translate_exception(exception, message:, sql:, binds:)
202202
# work with non-string keys, and in our case the keys are (almost) all
203203
# numeric
204204
def alias_type(map, new_type, old_type)
205-
map.register_type(new_type) do |_, *args|
206-
map.lookup(old_type, *args)
205+
map.register_type(new_type) do |_|
206+
map.lookup(old_type)
207207
end
208208
end
209209

lib/odbc_adapter/quoting.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def quoted_date(value)
4040
end
4141

4242
def lookup_cast_type_from_column(column) # :nodoc:
43-
type_map.lookup(column.type, column)
43+
type_map.lookup(column.type)
4444
end
4545

4646
def quote_hash(hash:)

0 commit comments

Comments
 (0)