Skip to content

Commit

Permalink
0000794: Support the lo datatype in postgres
Browse files Browse the repository at this point in the history
  • Loading branch information
chenson42 committed Aug 30, 2012
1 parent 056948d commit dcfdb15
Showing 1 changed file with 3 additions and 2 deletions.
Expand Up @@ -107,15 +107,16 @@ protected Integer mapUnknownJdbcTypeForColumn(Map<String, Object> values) {
} else if (typeName != null && typeName.equalsIgnoreCase("TIMESTAMPTZ")) {
// lets use the same type code that oracle uses
return -101;
} else if (typeName != null && typeName.equalsIgnoreCase("OID")) {
} else if (typeName != null &&
(typeName.equalsIgnoreCase("OID") || typeName.equalsIgnoreCase("LO"))) {
return Types.BLOB;
} else {
return super.mapUnknownJdbcTypeForColumn(values);
}
}

@Override
protected Column readColumn(DatabaseMetaDataWrapper metaData, Map values) throws SQLException {
protected Column readColumn(DatabaseMetaDataWrapper metaData, Map<String,Object> values) throws SQLException {
Column column = super.readColumn(metaData, values);

if (column.getSize() != null) {
Expand Down

0 comments on commit dcfdb15

Please sign in to comment.