Skip to content

Commit

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

0 comments on commit c177051

Please sign in to comment.