Skip to content

Commit

Permalink
0005095: Initial load before custom sql to support table replacement
Browse files Browse the repository at this point in the history
with delimiters
0005095: Initial load before custom sql to support table replacement
with delimiters
  • Loading branch information
joshahicks committed Oct 11, 2021
1 parent 35fbe30 commit 2a09816
Showing 1 changed file with 5 additions and 0 deletions.
Expand Up @@ -1617,6 +1617,11 @@ public List<String> resolveTargetTables(String sql, TriggerRouter triggerRouter,
tableNames.add(sourceTableName);
}
for (String tableName : tableNames) {
if (parameterService.is(ParameterConstants.DB_DELIMITED_IDENTIFIER_MODE)) {
String delimiter = engine.getTargetDialect().getTargetPlatform().getDatabaseInfo().getDelimiterToken();
tableName = tableName.replaceAll("\\.", delimiter + "." + delimiter);
tableName = delimiter + tableName + delimiter;
}
sqlStatements.add(String.format(sql, tableName));
}
} else {
Expand Down

0 comments on commit 2a09816

Please sign in to comment.