mirror of
https://github.com/CodePhiliaX/Chat2DB.git
synced 2025-09-26 16:44:13 +08:00
Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
@ -118,7 +118,11 @@ public class OracleMetaData extends DefaultMetaService implements MetaData {
|
|||||||
log.error("getDefaultValue error",e);
|
log.error("getDefaultValue error",e);
|
||||||
}
|
}
|
||||||
tableColumn.setName(resultSet.getString("COLUMN_NAME"));
|
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");
|
Integer dataPrecision = resultSet.getInt("DATA_PRECISION");
|
||||||
if(resultSet.getString("DATA_PRECISION") != null) {
|
if(resultSet.getString("DATA_PRECISION") != null) {
|
||||||
tableColumn.setColumnSize(dataPrecision);
|
tableColumn.setColumnSize(dataPrecision);
|
||||||
|
Reference in New Issue
Block a user