Skip to content

Commit

Permalink
fix bug with table create when initial.load.create.first is true. sho…
Browse files Browse the repository at this point in the history
…uld use the metadata from the table, not the sym_trigger source_table_name
  • Loading branch information
chenson42 committed May 21, 2012
1 parent 6a19fef commit 0aaf2c2
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -337,7 +337,10 @@ private void setDatabaseName(TriggerRouter triggerRouter, Database db) {

public String getCreateTableXML(TriggerRouter triggerRouter) {
Table table = getTable(triggerRouter.getTrigger(), true);
table.setName(triggerRouter.getTargetTable());
String targetTableName = triggerRouter.getRouter().getTargetTableName();
if (StringUtils.isNotBlank(targetTableName)) {
table.setName(targetTableName);
}
Database db = new Database();
setDatabaseName(triggerRouter, db);
db.addTable(table);
Expand Down

0 comments on commit 0aaf2c2

Please sign in to comment.