Skip to content

Commit 7433274

Browse files
authored
#2018 sp_BlitzCache arith overflow (#2033)
Changing MONEY on totals to BIGINT. Closes #2018.
1 parent 5205fc5 commit 7433274

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

sp_BlitzCache.sql

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2403,11 +2403,11 @@ OPTION (RECOMPILE) ;
24032403
* metric.
24042404
*/
24052405
RAISERROR('Computing CPU, duration, read, and write metrics', 0, 1) WITH NOWAIT;
2406-
DECLARE @total_duration MONEY,
2407-
@total_cpu MONEY,
2408-
@total_reads MONEY,
2409-
@total_writes MONEY,
2410-
@total_execution_count MONEY;
2406+
DECLARE @total_duration BIGINT,
2407+
@total_cpu BIGINT,
2408+
@total_reads BIGINT,
2409+
@total_writes BIGINT,
2410+
@total_execution_count BIGINT;
24112411

24122412
SELECT @total_cpu = SUM(TotalCPU),
24132413
@total_duration = SUM(TotalDuration),

0 commit comments

Comments
 (0)