Skip to content
Permalink
Browse files

0003958: Add table_name variable to subselect router

  • Loading branch information...
erilong committed May 15, 2019
1 parent 173dffd commit 66c675a9e090a3ef95ee361b2e0373e423b8c0e7
@@ -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 66c675a

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