[feature-#11689] change replaceAll to replace in method of tryExecuteSqlResolveColumnNames (#11696)

This commit is contained in:
fuchanghai 2022-09-05 09:54:18 +08:00 committed by GitHub
parent 554562bfa9
commit f8b9aad239
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -567,7 +567,7 @@ public class DataxTask extends AbstractTaskExecutor {
int num = md.getColumnCount();
columnNames = new String[num];
for (int i = 1; i <= num; i++) {
columnNames[i - 1] = md.getColumnName(i).replaceAll("t.","");
columnNames[i - 1] = md.getColumnName(i).replace("t.","");
}
} catch (SQLException | ExecutionException e) {
logger.error(e.getMessage(), e);