diff --git a/packages/app-tests/routineExecutionSql.test.ts b/packages/app-tests/routineExecutionSql.test.ts index a5804c20c..47da267d3 100644 --- a/packages/app-tests/routineExecutionSql.test.ts +++ b/packages/app-tests/routineExecutionSql.test.ts @@ -36,7 +36,11 @@ test("builds procedure execution templates from parameter values", () => { routineName: "refresh_stats", parameters, }), - "EXEC [dbo].[refresh_stats] @p_message = 'it''s ready', @p_count = 3, @p_debug = 1;", + [ + "DECLARE @dbx_output_4 text;", + "EXEC [dbo].[refresh_stats] @p_message = 'it''s ready', @p_count = 3, @p_debug = 1, @p_result = @dbx_output_4 OUTPUT;", + "SELECT @dbx_output_4 AS [p_result];", + ].join("\n"), ); });