Merge branch 'dev' into data-import

This commit is contained in:
Chat2DB
2024-06-15 19:27:30 +08:00
committed by GitHub
37 changed files with 3153 additions and 198 deletions

View File

@ -120,7 +120,11 @@ public class OracleMetaData extends DefaultMetaService implements MetaData {
log.error("getDefaultValue error",e);
}
tableColumn.setName(resultSet.getString("COLUMN_NAME"));
tableColumn.setColumnType(resultSet.getString("DATA_TYPE"));
String dataType = resultSet.getString("DATA_TYPE");
if(dataType.contains("(")){
dataType = dataType.substring(0,dataType.indexOf("(")).trim();
}
tableColumn.setColumnType(dataType);
Integer dataPrecision = resultSet.getInt("DATA_PRECISION");
if(resultSet.getString("DATA_PRECISION") != null) {
tableColumn.setColumnSize(dataPrecision);