Skip to content

Commit

Permalink
Allow fewer arguments to be specified for columns
Browse files Browse the repository at this point in the history
  • Loading branch information
kddnewton committed Jan 26, 2017
1 parent d4f891f commit 39c3da9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/odbc_adapter/column.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module ODBCAdapter
class Column < ActiveRecord::ConnectionAdapters::Column
attr_reader :native_type

def initialize(name, default, cast_type, sql_type, null, native_type, scale, limit)
def initialize(name, default, cast_type, sql_type = nil, null = nil, native_type = nil, scale = nil, limit = nil)
@name = name
@default = default
@cast_type = cast_type
Expand Down
2 changes: 1 addition & 1 deletion lib/odbc_adapter/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module ODBCAdapter
VERSION = '4.2.2'
VERSION = '4.2.3'
end

0 comments on commit 39c3da9

Please sign in to comment.