Skip to content
Permalink
Browse files

0003958: Add table_name variable to subselect router

  • Loading branch information...
erilong committed May 15, 2019
1 parent f98d0ec commit a0d6ad14040f4a6b2cd844e9a16830d6f7c76b31
@@ -82,6 +82,7 @@ public SubSelectDataRouter(ISymmetricDialect symmetricDialect) {
sqlParams.put("NODE_GROUP_ID", dataMetaData.getRouter().getNodeGroupLink()
.getTargetNodeGroupId());
sqlParams.put("EXTERNAL_DATA", dataMetaData.getData().getExternalData());
sqlParams.put("TABLE_NAME", dataMetaData.getData().getTableName());
ISqlTemplate template = symmetricDialect.getPlatform().getSqlTemplate();
List<String> ids = template.query(String.format("%s%s", sql, subSelect),
new StringMapper(), sqlParams);

0 comments on commit a0d6ad1

Please sign in to comment.
You can’t perform that action at this time.