From 2e407662551e6945d934b2e0ef9d376478e2b3ea Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Sat, 10 Mar 2018 19:45:48 -0500 Subject: [PATCH] cast varchar --- util/Setup/DbScripts/2018-02-28_00_LoginUris.sql | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/util/Setup/DbScripts/2018-02-28_00_LoginUris.sql b/util/Setup/DbScripts/2018-02-28_00_LoginUris.sql index 43a62ecfcd..5224c47d9d 100644 --- a/util/Setup/DbScripts/2018-02-28_00_LoginUris.sql +++ b/util/Setup/DbScripts/2018-02-28_00_LoginUris.sql @@ -54,14 +54,14 @@ BEGIN UPDATE [CTE] SET - [Data] = JSON_MODIFY( + [Data] = CAST(JSON_MODIFY( [Data], @UrisPath, - JSON_QUERY( - '[{"Uri":"' + JSON_VALUE([Data], @UriPath) + '"}]', + CAST(JSON_QUERY( + '[{"Uri":"' + CAST(JSON_VALUE([Data], @UriPath) AS VARCHAR(MAX)) + '"}]', '$' - ) - ) + ) AS VARCHAR(MAX)) + ) AS VARCHAR(MAX)) OUTPUT INSERTED.[Id] INTO [CompletedIds] SET @BatchSize = @@ROWCOUNT