Skip to content

Commit

Permalink
0001996: Support JSON data type. Map all unrecognized types to LONGVA…
Browse files Browse the repository at this point in the history
…RCHAR for Postgres.
  • Loading branch information
chenson42 committed Sep 26, 2014
1 parent b4846fd commit de00342
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -114,7 +114,7 @@ protected Integer mapUnknownJdbcTypeForColumn(Map<String, Object> values) {
return MAPPED_TIMESTAMPTZ;
} else if (PostgreSqlDatabasePlatform.isBlobStoredByReference(typeName)) {
return Types.BLOB;
} else if (type != null && type == Types.STRUCT) {
} else if (type != null && (type == Types.STRUCT || type == Types.OTHER)) {
return Types.LONGVARCHAR;
} else {
return super.mapUnknownJdbcTypeForColumn(values);
Expand Down

0 comments on commit de00342

Please sign in to comment.