Skip to content

Commit

Permalink
Merge pull request #2 from woehrl01/woehrl01-patch-1
Browse files Browse the repository at this point in the history
0002393: NVARCHAR limit on SQL Server is a size of 4000
  • Loading branch information
chenson42 committed Sep 12, 2015
2 parents 0ed8953 + da17cf9 commit 30565fa
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ protected Integer mapUnknownJdbcTypeForColumn(Map<String, Object> values) {
return Types.VARCHAR;
} else if (typeName != null && typeName.toUpperCase().contains("VARCHAR") && size > 8000) {
return Types.LONGVARCHAR;
} else if (typeName != null && typeName.toUpperCase().contains("NVARCHAR") && size > 8000) {
} else if (typeName != null && typeName.toUpperCase().contains("NVARCHAR") && size > 4000) {
return Types.LONGNVARCHAR;
} else if (typeName != null && typeName.toUpperCase().equals("SQL_VARIANT")) {
return Types.BINARY;
Expand Down

0 comments on commit 30565fa

Please sign in to comment.