Permalink
Browse files

0003167: Sybase ASE Errors Using Multithreaded Sync Triggers

  • Loading branch information...
maxwellpettit committed Jun 26, 2017
1 parent 9f6eee4 commit 31c72e3ae2e2e5f94c69c80244bfc4df6ffa5649
@@ -1263,7 +1263,7 @@ protected Trigger getTriggerFromList(String triggerId, List<Trigger> triggersTha
private int getNumberOfThreadsToUseForSyncTriggers() {
int numThreads = parameterService.getInt(ParameterConstants.SYNC_TRIGGERS_THREAD_COUNT_PER_SERVER);
if (parameterService.is(ParameterConstants.SYNCHRONIZE_ALL_JOBS, false)) {
if (parameterService.is(ParameterConstants.SYNCHRONIZE_ALL_JOBS, false) || !platform.isUseMultiThreadSyncTriggers()) {
numThreads = 1;
}
return numThreads;
@@ -107,6 +107,8 @@
protected Boolean storesMixedCaseIdentifiers;
protected boolean metadataIgnoreCase = true;
protected boolean useMultiThreadSyncTriggers = true;
public AbstractDatabasePlatform() {
}
@@ -1080,4 +1082,7 @@ protected PermissionResult getCreateSymFunctionPermission() {
return result;
}
public boolean isUseMultiThreadSyncTriggers() {
return useMultiThreadSyncTriggers;
}
}
@@ -187,4 +187,6 @@ public DmlStatement createDmlStatement(DmlType dmlType, String catalogName, Stri
public List<PermissionResult> checkSymTablePermissions(PermissionType... permissionTypes);
public boolean isUseMultiThreadSyncTriggers();
}
@@ -58,6 +58,8 @@ public AseDatabasePlatform(DataSource dataSource, SqlTemplateSettings settings)
sqlScriptReplacementTokens = new HashMap<String, String>();
sqlScriptReplacementTokens.put("current_timestamp", "getdate()");
this.useMultiThreadSyncTriggers = false;
}
@Override
Oops, something went wrong.

0 comments on commit 31c72e3

Please sign in to comment.