Skip to content

Commit

Permalink
0006082: Improved how SQLite nodes insert into sym_context when disab…
Browse files Browse the repository at this point in the history
…ling sync triggers
  • Loading branch information
evan-miller-jumpmind committed Nov 1, 2023
1 parent ca8a5e8 commit fcedd31
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -67,9 +67,9 @@ protected void setSqliteFunctionResult(ISqlTransaction transaction, final String

public void disableSyncTriggers(ISqlTransaction transaction, String nodeId) {
if (isBlank(sqliteFunctionToOverride)) {
contextService.insert(transaction, SYNC_TRIGGERS_DISABLED_USER_VARIABLE, "1");
contextService.save(transaction, SYNC_TRIGGERS_DISABLED_USER_VARIABLE, "1");
if (nodeId != null) {
contextService.insert(transaction, SYNC_TRIGGERS_DISABLED_NODE_VARIABLE, nodeId);
contextService.save(transaction, SYNC_TRIGGERS_DISABLED_NODE_VARIABLE, nodeId);
}
} else {
String node = nodeId != null ? ":" + nodeId : "";
Expand Down

0 comments on commit fcedd31

Please sign in to comment.