Skip to content

Commit ebb9829

Browse files
committed
Closes #2831
dn is back! You uh, don't need to list that I fixed the bug I introduced in the liner notes. I'm fine with this one going uncredited 😃
1 parent 8fc2bd1 commit ebb9829

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

sp_BlitzLock.sql

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1315,6 +1315,7 @@ You need to use an Azure storage account, and the path has to look like this: ht
13151315
dp.process_xml.value('(//process/inputbuf/text())[1]', 'NVARCHAR(MAX)') AS inputbuf,
13161316
DENSE_RANK() OVER ( ORDER BY dp.event_date ) AS en,
13171317
ROW_NUMBER() OVER ( PARTITION BY dp.event_date ORDER BY dp.event_date ) -1 AS qn,
1318+
ROW_NUMBER() OVER ( PARTITION BY dp.event_date, dp.id ORDER BY dp.event_date ) AS dn,
13181319
dp.is_victim,
13191320
ISNULL(dp.owner_mode, '-') AS owner_mode,
13201321
NULL AS owner_waiter_type,
@@ -1371,6 +1372,7 @@ You need to use an Azure storage account, and the path has to look like this: ht
13711372
dp.process_xml.value('(//process/inputbuf/text())[1]', 'NVARCHAR(MAX)') AS inputbuf,
13721373
DENSE_RANK() OVER ( ORDER BY dp.event_date ) AS en,
13731374
ROW_NUMBER() OVER ( PARTITION BY dp.event_date ORDER BY dp.event_date ) -1 AS qn,
1375+
ROW_NUMBER() OVER ( PARTITION BY dp.event_date, dp.id ORDER BY dp.event_date ) AS dn,
13741376
1 AS is_victim,
13751377
cao.wait_type COLLATE DATABASE_DEFAULT AS owner_mode,
13761378
cao.waiter_type AS owner_waiter_type,
@@ -1536,6 +1538,7 @@ ELSE --Output to database is not set output to client app
15361538
dp.process_xml.value('(//process/inputbuf/text())[1]', 'NVARCHAR(MAX)') AS inputbuf,
15371539
DENSE_RANK() OVER ( ORDER BY dp.event_date ) AS en,
15381540
ROW_NUMBER() OVER ( PARTITION BY dp.event_date ORDER BY dp.event_date ) -1 AS qn,
1541+
ROW_NUMBER() OVER ( PARTITION BY dp.event_date, dp.id ORDER BY dp.event_date ) AS dn,
15391542
dp.is_victim,
15401543
ISNULL(dp.owner_mode, '-') AS owner_mode,
15411544
NULL AS owner_waiter_type,
@@ -1592,6 +1595,7 @@ ELSE --Output to database is not set output to client app
15921595
dp.process_xml.value('(//process/inputbuf/text())[1]', 'NVARCHAR(MAX)') AS inputbuf,
15931596
DENSE_RANK() OVER ( ORDER BY dp.event_date ) AS en,
15941597
ROW_NUMBER() OVER ( PARTITION BY dp.event_date ORDER BY dp.event_date ) -1 AS qn,
1598+
ROW_NUMBER() OVER ( PARTITION BY dp.event_date, dp.id ORDER BY dp.event_date ) AS dn,
15951599
1 AS is_victim,
15961600
cao.wait_type COLLATE DATABASE_DEFAULT AS owner_mode,
15971601
cao.waiter_type AS owner_waiter_type,

0 commit comments

Comments
 (0)