Skip to content

Commit

Permalink
0005512: Prevented default values for Oracle RAW columns from getting…
Browse files Browse the repository at this point in the history
… surrounded by quotes when exported
  • Loading branch information
evan-miller-jumpmind committed Oct 5, 2022
1 parent 8cfd029 commit 7f43af0
Showing 1 changed file with 6 additions and 0 deletions.
Expand Up @@ -260,6 +260,12 @@ protected Column readColumn(DatabaseMetaDataWrapper metaData, Map<String, Object
platformColumn.setDecimalDigits(0);
}
}
} else if (column.getMappedTypeCode() == Types.BINARY || column.getMappedTypeCode() == Types.VARBINARY) {
String defaultValue = column.getDefaultValue();
if (isNotBlank(defaultValue) && defaultValue.startsWith("'") && defaultValue.endsWith("'")) {
defaultValue = defaultValue.substring(1, defaultValue.length() - 1);
column.setDefaultValue(defaultValue);
}
} else if (TypeMap.isTextType(column.getMappedTypeCode())) {
String defaultValue = column.getDefaultValue();
if (isNotBlank(defaultValue) && defaultValue.startsWith("('") && defaultValue.endsWith("')")) {
Expand Down

0 comments on commit 7f43af0

Please sign in to comment.