Skip to content

Commit

Permalink
0005089: Prevented Sybase from inserting spaces into sym_router and s…
Browse files Browse the repository at this point in the history
…ym_trigger_router instead of empty strings or null values
  • Loading branch information
evan-miller-jumpmind committed Sep 23, 2021
1 parent 841fd55 commit 4f474f4
Showing 1 changed file with 6 additions and 6 deletions.
Expand Up @@ -2298,13 +2298,13 @@ public Router mapRow(Row rs) {
router.setSyncOnInsert(rs.getBoolean("r_sync_on_insert"));
router.setSyncOnUpdate(rs.getBoolean("r_sync_on_update"));
router.setSyncOnDelete(rs.getBoolean("r_sync_on_delete"));
router.setTargetCatalogName(rs.getString("target_catalog_name"));
router.setTargetCatalogName(StringUtils.trimToNull(rs.getString("target_catalog_name")));
router.setNodeGroupLink(getNodeGroupLink(
rs.getString("source_node_group_id"), rs.getString("target_node_group_id")));
router.setTargetSchemaName(rs.getString("target_schema_name"));
router.setTargetTableName(rs.getString("target_table_name"));
router.setTargetSchemaName(StringUtils.trimToNull(rs.getString("target_schema_name")));
router.setTargetTableName(StringUtils.trimToNull(rs.getString("target_table_name")));

String condition = rs.getString("router_expression");
String condition = rs.getString(StringUtils.trimToNull("router_expression"));
if (!StringUtils.isBlank(condition)) {
router.setRouterExpression(condition);
}
Expand Down Expand Up @@ -2418,9 +2418,9 @@ public TriggerRouter mapRow(Row rs) {
triggerRouter.setLastUpdateTime(rs.getDateTime("last_update_time"));
triggerRouter.setLastUpdateBy(rs.getString("last_update_by"));
triggerRouter.setInitialLoadOrder(rs.getInt("initial_load_order"));
triggerRouter.setInitialLoadSelect(rs.getString("initial_load_select"));
triggerRouter.setInitialLoadSelect(StringUtils.trimToNull(rs.getString("initial_load_select")));
triggerRouter.setEnabled(rs.getBoolean("enabled"));
triggerRouter.setInitialLoadDeleteStmt(rs.getString("initial_load_delete_stmt"));
triggerRouter.setInitialLoadDeleteStmt(StringUtils.trimToNull(rs.getString("initial_load_delete_stmt")));
triggerRouter.setPingBackEnabled(rs.getBoolean("ping_back_enabled"));

return triggerRouter;
Expand Down

0 comments on commit 4f474f4

Please sign in to comment.