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