Skip to content

Commit ef9d1ab

Browse files
Updated RemoveAllDeviceCalculations to handle single BulkSequenceCalculator instances.
1 parent 0575b39 commit ef9d1ab

File tree

2 files changed

+1022
-1019
lines changed

2 files changed

+1022
-1019
lines changed

Source/Applications/openHistorian/openHistorian/DataHub.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,7 @@ public void RemoveDeviceCalculations(int deviceID)
352352
public void RemoveAllDeviceCalculations()
353353
{
354354
DataContext.Connection.ExecuteNonQuery("DELETE FROM CustomActionAdapter WHERE TypeName = 'DynamicCalculator.DynamicCalculator'");
355+
DataContext.Connection.ExecuteNonQuery("DELETE FROM CustomActionAdapter WHERE TypeName = 'PowerCalculations.BulkSequenceCalculator' AND AdapterName <> 'BULK_SEQ'");
355356
DataContext.Connection.ExecuteNonQuery($"DELETE FROM Measurement WHERE SignalTypeID = {CalcSignalTypeID}");
356357
}
357358

0 commit comments

Comments
 (0)