Skip to content

Commit

Permalink
0005273: Rebuild trigger does not take into account the target platform
Browse files Browse the repository at this point in the history
  • Loading branch information
Philip Marzullo committed Apr 19, 2022
1 parent 04bd62e commit cc34018
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -1569,7 +1569,7 @@ public boolean syncTriggers(List<Table> tables, boolean force) {
activeTriggerHistories, true);
for (Table table : tables) {
/* Re-lookup just in case the table was just altered */
table = platform.getTableFromCache(table.getCatalog(), table.getSchema(), table.getName(), true);
table = symmetricDialect.getTargetPlatform(table.getName()).getTableFromCache(table.getCatalog(), table.getSchema(), table.getName(), true);
for (Trigger trigger : triggersForCurrentNode) {
if (trigger.matches(table, platform.getDefaultCatalog(), platform.getDefaultSchema(), ignoreCase) &&
(!trigger.isSourceTableNameWildCarded() || !trigger.isSourceTableNameExpanded()
Expand Down

0 comments on commit cc34018

Please sign in to comment.