Skip to content

Commit 223c3d8

Browse files
seandmccarthykares
authored andcommitted
Match 'int' as well as 'integer' when converting to SQL types for MSSQL
1 parent 1a7a2e7 commit 223c3d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/arjdbc/mssql/adapter.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def type_to_sql(type, limit = nil, precision = nil, scale = nil)
123123
'NVARCHAR(MAX)'
124124
elsif NO_LIMIT_TYPES.include?(type_s)
125125
super(type)
126-
elsif type_s == 'integer'
126+
elsif type_s == 'integer' || type_s == 'int'
127127
if limit.nil? || limit == 4
128128
'int'
129129
elsif limit == 2

0 commit comments

Comments
 (0)