Skip to content

Commit 18ef1b9

Browse files
committed
fix 41 - update datatypes
use correct size for sha2_512 return values
1 parent 4e33d34 commit 18ef1b9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Direct_Framework/Stored Procedures/omd.RegisterBatch.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ BEGIN TRY
149149

150150
-- Evaluate the incoming values to see if the Batch should be updated.
151151
-- Note that the active indicator is excluded here, to allow it to be managed separately.
152-
DECLARE @NewChecksum BINARY(20) =
152+
DECLARE @NewChecksum VARBINARY(64) =
153153
HASHBYTES('SHA2_512',
154154
@BatchType + '!' +
155155
@BatchFrequency + '!' +

Direct_Framework/Stored Procedures/omd.RegisterModule.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ BEGIN TRY
186186
-- Evaluate the incoming values to see if the Module should be updated.
187187
-- Note that the active indicator is excluded here,
188188
-- to allow it to be managed separately.
189-
DECLARE @NewChecksum BINARY(20) =
189+
DECLARE @NewChecksum VARBINARY(64) =
190190
HASHBYTES('SHA2_512',
191191
@ModuleType + '!' +
192192
@ModuleSourceDataObject + '!' +
@@ -201,7 +201,7 @@ BEGIN TRY
201201
SET @MessageLog = [omd].[AddLogMessage](DEFAULT, DEFAULT, N'Status Update', @LogMessage, @MessageLog)
202202

203203
-- Evaluate the existing values to see if the Module requires to be updated.
204-
DECLARE @ExistingChecksum BINARY(20);
204+
DECLARE @ExistingChecksum VARBINARY(64);
205205
SELECT @ExistingChecksum =
206206
HASHBYTES('SHA2_512',
207207
COALESCE([MODULE_TYPE], 'N/A') + '!' +

0 commit comments

Comments
 (0)