mirror of
https://gitee.com/dromara/dbswitch.git
synced 2025-09-15 16:39:05 +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
|
@Override
|
||||||
public List<String> queryTablePrimaryKeys(Connection connection, String schemaName, String tableName) {
|
public List<String> queryTablePrimaryKeys(Connection connection, String schemaName, String tableName) {
|
||||||
List<String> result = new ArrayList<>();
|
List<String> result = new ArrayList<>();
|
||||||
|
Reference in New Issue
Block a user