Skip to content

Commit

Permalink
0004800: Subselect router expression in parens
Browse files Browse the repository at this point in the history
  • Loading branch information
erilong committed Oct 8, 2021
1 parent a12aa00 commit 1708bb8
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -78,7 +78,7 @@ public Set<String> routeToNodes(SimpleRouterContext routingContext, DataMetaData
sqlParams.put("DATA_EVENT_TYPE", dataMetaData.getData().getDataEventType().name());
sqlParams.put("TABLE_NAME", dataMetaData.getData().getTableName());
ISqlTemplate template = symmetricDialect.getPlatform().getSqlTemplate();
List<String> ids = template.query(String.format("%s%s", sql, subSelect),
List<String> ids = template.query(String.format("%s(%s)", sql, subSelect),
new StringMapper(), sqlParams);
if (ids != null) {
nodeIds = new HashSet<String>(ids);
Expand Down

0 comments on commit 1708bb8

Please sign in to comment.