Skip to content

Commit

Permalink
Fix new column methods
Browse files Browse the repository at this point in the history
  • Loading branch information
kddnewton committed Jan 23, 2017
1 parent 2920030 commit d83f929
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions lib/active_record/connection_adapters/odbc_adapter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,6 @@ def disconnect!
@connection.disconnect if @connection.connected?
end

def new_column(name, default, cast_type, sql_type = nil, null = true)
::ODBCAdapter::Column.new(name, default, cast_type, sql_type, null)
end

protected

def initialize_type_map(map)
Expand Down Expand Up @@ -172,8 +168,8 @@ def translate_exception(exception, message)
end
end

def new_column(name, default, cast_type, sql_type = nil, null = true, scale = nil, limit = nil)
::ODBCAdapter::Column.new(name, default, cast_type, sql_type, null, scale, limit)
def new_column(name, default, cast_type, sql_type = nil, null = true, native_type = nil, scale = nil, limit = nil)
::ODBCAdapter::Column.new(name, default, cast_type, sql_type, null, native_type, scale, limit)
end

private
Expand Down

0 comments on commit d83f929

Please sign in to comment.