Skip to content

Commit

Permalink
0004191: Prevented dbexport from trying to create a Postgres varchar …
Browse files Browse the repository at this point in the history
…column with a size > 10485760 (used a text column instead)
  • Loading branch information
evan-miller-jumpmind committed Aug 15, 2022
1 parent e6ac8b2 commit 39a9d9f
Showing 1 changed file with 7 additions and 0 deletions.
Expand Up @@ -497,10 +497,17 @@ public String getSqlType(Column column) {
if (platformColumn.getValue() != null && platformColumn.getValue().getType() != null &&
platformColumn.getValue().getType().equals("JSON")) {
type = "JSONB";
return type;
}
}
}
}
if (column.getMappedTypeCode() == Types.CHAR || column.getMappedTypeCode() == Types.VARCHAR) {
int size = column.getSizeAsInt();
if (size > 10485760) {
type = "TEXT";
}
}
return type;
}
}

0 comments on commit 39a9d9f

Please sign in to comment.