Skip to content

Commit

Permalink
0001334: The issue with jConnect JDBC, SQL Anywhere and decimal value
Browse files Browse the repository at this point in the history
  • Loading branch information
abrougher committed Jul 22, 2013
1 parent 9393785 commit 21f6132
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -88,7 +88,8 @@ protected Column readColumn(DatabaseMetaDataWrapper metaData, Map<String,Object>
&& (column.getScale() == 0)) {
// Back-mapping to BIGINT
column.setMappedTypeCode(Types.BIGINT);
} else if (column.getMappedTypeCode() == Types.NUMERIC) {
} else if (column.getMappedTypeCode() == Types.NUMERIC
|| column.getMappedTypeCode() == Types.DECIMAL) {
// ASA truncates everything to the right of the decimal point unless
// we map to DOUBLE.
column.setMappedTypeCode(Types.DOUBLE);
Expand Down

0 comments on commit 21f6132

Please sign in to comment.