fix: StarRocks、tidb 同步数据

This commit is contained in:
taojinlong 2022-04-05 11:57:29 +08:00
parent 9f3ef8e1f9
commit 0a9d2a8810

View File

@ -872,6 +872,8 @@ public class ExtractDataService {
case ds_doris:
case mariadb:
case mysql:
case TiDB:
case StarRocks:
MysqlConfiguration mysqlConfiguration = new Gson().fromJson(datasource.getConfiguration(), MysqlConfiguration.class);
dataMeta = new DatabaseMeta("db", "MYSQL", "Native", mysqlConfiguration.getHost().trim(), mysqlConfiguration.getDataBase().trim(), mysqlConfiguration.getPort().toString(), mysqlConfiguration.getUsername(), mysqlConfiguration.getPassword());
dataMeta.addExtraOption("MYSQL", "characterEncoding", "UTF-8");