Skip to content

Commit

Permalink
0003965: Mapped Oracle LONG type to MariaDB LONGTEXT type
Browse files Browse the repository at this point in the history
  • Loading branch information
evan-miller-jumpmind committed Aug 16, 2022
1 parent 39a9d9f commit fa3a396
Showing 1 changed file with 7 additions and 0 deletions.
Expand Up @@ -382,6 +382,13 @@ public String getSqlType(Column column) {
sqlType = tmpSqlType.toString();
}
}
pc = column.getPlatformColumns() == null ? null : column.getPlatformColumns().get(DatabaseNamesConstants.ORACLE);
if (pc == null) {
pc = column.getPlatformColumns() == null ? null : column.getPlatformColumns().get(DatabaseNamesConstants.ORACLE122);
}
if (pc != null && "LONG".equals(pc.getType())) {
sqlType = "LONGTEXT";
}
if ("TINYBLOB".equalsIgnoreCase(column.getJdbcTypeName())) {
// For some reason, MySql driver returns BINARY type for TINYBLOB instead of BLOB type
sqlType = "TINYBLOB";
Expand Down

0 comments on commit fa3a396

Please sign in to comment.