Skip to content

Commit

Permalink
better error message if table is dropped after creating trigger hist
Browse files Browse the repository at this point in the history
  • Loading branch information
chenson42 committed Apr 11, 2014
1 parent fbfc3c7 commit 55850db
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -902,8 +902,12 @@ protected Table lookupAndOrderColumnsAccordingToTriggerHistory(String routerId,
Table table = null;
if (useDatabaseDefinition) {
table = platform.getTableFromCache(catalogName, schemaName, tableName, false);
if (table != null) {
table = table.copyAndFilterColumns(triggerHistory.getParsedColumnNames(),
triggerHistory.getParsedPkColumnNames(), true);
} else {
throw new SymmetricException("Could not find the followig table. It might have been dropped: %s", Table.getFullyQualifiedTableName(catalogName, schemaName, tableName));
}
} else {
table = new Table(tableName);
table.addColumns(triggerHistory.getParsedColumnNames());
Expand Down

0 comments on commit 55850db

Please sign in to comment.