From 39c3da9ed6870b5c17d5bf721771fd3ad413b675 Mon Sep 17 00:00:00 2001 From: Kevin Deisz Date: Thu, 26 Jan 2017 15:29:51 -0500 Subject: [PATCH] Allow fewer arguments to be specified for columns --- lib/odbc_adapter/column.rb | 2 +- lib/odbc_adapter/version.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/odbc_adapter/column.rb b/lib/odbc_adapter/column.rb index c0d62f28..8b09e1ed 100644 --- a/lib/odbc_adapter/column.rb +++ b/lib/odbc_adapter/column.rb @@ -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 diff --git a/lib/odbc_adapter/version.rb b/lib/odbc_adapter/version.rb index d8f4212b..97e31334 100644 --- a/lib/odbc_adapter/version.rb +++ b/lib/odbc_adapter/version.rb @@ -1,3 +1,3 @@ module ODBCAdapter - VERSION = '4.2.2' + VERSION = '4.2.3' end