Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
0000767: Latest oracle jdbc drivers for 11g return (0,-127) for types…
… defined as integer resulting in bad mappings
  • Loading branch information
chenson42 committed Aug 10, 2012
1 parent 5294471 commit dd3d5b2
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -167,7 +167,9 @@ protected Column readColumn(DatabaseMetaDataWrapper metaData, Map<String, Object
column.setMappedTypeCode(Types.BIGINT);
}
} else if (column.getScale() <= -127 || column.getScale() >= 127) {
if (column.getSizeAsInt() <= 63) {
if (column.getSizeAsInt() == 0) {
column.setMappedTypeCode(Types.INTEGER);
} else if (column.getSizeAsInt() <= 63) {
column.setMappedTypeCode(Types.REAL);
} else {
column.setMappedTypeCode(Types.DOUBLE);
Expand Down

0 comments on commit dd3d5b2

Please sign in to comment.