Skip to content

Commit 9311e14

Browse files
authored
Merge pull request #42 from data-solution-automation-engine/dev/41-fix-hashbytes-datatypes
Dev/41 fix hashbytes datatypes
2 parents 7a23890 + cd7f869 commit 9311e14

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,3 +408,4 @@ FodyWeavers.xsd
408408
# Direct_Framework/Reference_Databases/[Bb]in/[Dd]ebug/*
409409
# !Direct_Framework/Reference_Databases/bin/Debug/master.dacpac
410410
# !Direct_Framework/Reference_Databases/bin/Debug/msdb.dacpac
411+
/.vscode

Direct_Framework/Direct_Framework.sqlproj

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,6 @@
209209
<None Include="BuildTools\PostBuild.ps1" />
210210
<None Include="BuildTools\PreBuild.cmd" />
211211
<None Include="BuildTools\PreBuild.ps1" />
212-
<None Include="Direct_Framework.publish.xml" />
213212
</ItemGroup>
214213
<ItemGroup>
215214
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Condition="'$(NetCoreBuild)' == 'true'">
@@ -227,4 +226,4 @@
227226
<Target Name="BeforeBuild">
228227
<Delete Files="$(BaseIntermediateOutputPath)\project.assets.json" />
229228
</Target>
230-
</Project>
229+
</Project>

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)