Skip to content

Commit 12ccfea

Browse files
committed
fix heaps from triggering index table header incorrectly
1 parent 527171d commit 12ccfea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sp_doc.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ sp_doc - Always have current documentation by generating it on the fly in markdo
7878
7979
Part of the DBA MultiTool http://dba-multitool.org
8080
81-
Version: 20201216
81+
Version: 20201221
8282
8383
MIT License
8484
@@ -394,7 +394,7 @@ BEGIN
394394
WHERE [t].[object_id] = @objectid;' +
395395

396396
--Indexes
397-
+ N'IF EXISTS (SELECT 1 FROM [sys].[indexes] WHERE [object_id] = @objectid)
397+
+ N'IF EXISTS (SELECT 1 FROM [sys].[indexes] WHERE [object_id] = @objectid AND [type] > 0)
398398
BEGIN
399399
INSERT INTO #markdown
400400
SELECT CONCAT(CHAR(13), CHAR(10), ''#### '', ''Indexes'')

0 commit comments

Comments
 (0)