Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
No commit message
  • Loading branch information
erilong committed May 16, 2009
1 parent ab8fb8c commit c2f4757
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Expand Up @@ -242,8 +242,9 @@ public String replaceTemplateVariables(IDbDialect dialect, DataEventType dml, Tr
ddl);
ddl = replace("syncOnDeleteCondition", dialect.preProcessTriggerSqlClause(trigger.getSyncOnDeleteCondition()),
ddl);
ddl = replace("syncOnIncomingBatchCondition", trigger.isSyncOnIncomingBatch() ? "1=1" : dialect
.getSyncTriggersExpression(), ddl);
ddl = replace("syncOnIncomingBatchCondition", trigger.isSyncOnIncomingBatch() ? "1=1" : replace("defaultCatalog",
resolveSchemaAndCatalogs && defaultCatalog != null && defaultCatalog.length() > 0 ? defaultCatalog + "." : "",
dialect.getSyncTriggersExpression()), ddl);
ddl = replace("origTableAlias", ORIG_TABLE_ALIAS, ddl);

Column[] columns = trigger.orderColumnsForTable(metaData);
Expand Down
Expand Up @@ -159,7 +159,7 @@ public void enableSyncTriggers() {
}

public String getSyncTriggersExpression() {
return getDefaultCatalog() + ".dbo.fn_sym_triggers_disabled() = 0";
return "$(defaultCatalog)dbo.fn_sym_triggers_disabled() = 0";
}

@Override
Expand Down

0 comments on commit c2f4757

Please sign in to comment.