Skip to content

Commit bce8ed2

Browse files
BrentOzarCopilot
andauthored
Apply suggestion from @Copilot
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent caa1a87 commit bce8ed2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sp_BlitzLock.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4316,8 +4316,8 @@ BEGIN
43164316
) AS deps
43174317
WHERE deqs.sql_handle = ap.sql_handle
43184318
AND deps.dbid = ap.database_id
4319-
AND deqs.statement_start_offset = ap.stmtstart
4320-
AND deqs.statement_end_offset = ap.stmtend
4319+
AND (ap.stmtstart IS NULL OR deqs.statement_start_offset = ap.stmtstart)
4320+
AND (ap.stmtend IS NULL OR deqs.statement_end_offset = ap.stmtend)
43214321
) AS c
43224322
) AS ap
43234323
WHERE ap.query_plan IS NOT NULL

0 commit comments

Comments
 (0)