Commit 3e0c5aa
Fix sp_BlitzLock qn column to restore 0-based numbering
The qn column was changed from ROW_NUMBER() - 1 (0-based) to
ROW_NUMBER() (1-based), but downstream code still expects 0-based
values. This caused parallel deadlocks to silently drop the second
query (d.qn < 2 only keeps 1 row instead of 2) and made the
WHEN d.qn = 0 labeling branch dead code.
Fixes issue identified by Copilot in PR #3885.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 63470a8 commit 3e0c5aa
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3618 | 3618 | | |
3619 | 3619 | | |
3620 | 3620 | | |
3621 | | - | |
| 3621 | + | |
3622 | 3622 | | |
3623 | 3623 | | |
3624 | 3624 | | |
| |||
3703 | 3703 | | |
3704 | 3704 | | |
3705 | 3705 | | |
3706 | | - | |
| 3706 | + | |
3707 | 3707 | | |
3708 | 3708 | | |
3709 | 3709 | | |
| |||
0 commit comments