1
0
mirror of https://github.com/bitwarden/server.git synced 2025-04-05 21:18:13 -05:00

cast varchar

This commit is contained in:
Kyle Spearrin 2018-03-10 19:45:48 -05:00
parent 54cca818ac
commit 2e40766255

View File

@ -54,14 +54,14 @@ BEGIN
UPDATE UPDATE
[CTE] [CTE]
SET SET
[Data] = JSON_MODIFY( [Data] = CAST(JSON_MODIFY(
[Data], [Data],
@UrisPath, @UrisPath,
JSON_QUERY( CAST(JSON_QUERY(
'[{"Uri":"' + JSON_VALUE([Data], @UriPath) + '"}]', '[{"Uri":"' + CAST(JSON_VALUE([Data], @UriPath) AS VARCHAR(MAX)) + '"}]',
'$' '$'
) ) AS VARCHAR(MAX))
) ) AS VARCHAR(MAX))
OUTPUT INSERTED.[Id] INTO [CompletedIds] OUTPUT INSERTED.[Id] INTO [CompletedIds]
SET @BatchSize = @@ROWCOUNT SET @BatchSize = @@ROWCOUNT