mirror of
https://gitee.com/dromara/dbswitch.git
synced 2025-09-08 13:17:38 +00:00
修正clickhouse迁移
This commit is contained in:
@@ -116,6 +116,19 @@ public class ClickhouseMetadataQueryProvider extends AbstractMetadataProvider {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<ColumnDescription> queryTableColumnMeta(Connection connection, String schemaName,
|
||||
String tableName) {
|
||||
List<ColumnDescription> results = super.queryTableColumnMeta(connection, schemaName, tableName);
|
||||
for (ColumnDescription column : results) {
|
||||
if (StringUtils.equals(column.getFieldTypeName(), "Nullable(String)")
|
||||
|| StringUtils.equals(column.getFieldTypeName(), "String")) {
|
||||
column.setDisplaySize(Constants.CLOB_LENGTH);
|
||||
}
|
||||
}
|
||||
return results;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<String> queryTablePrimaryKeys(Connection connection, String schemaName, String tableName) {
|
||||
List<String> result = new ArrayList<>();
|
||||
|
Reference in New Issue
Block a user