Skip to content

Commit e772d51

Browse files
authored
Merge pull request #3759 from BrentOzarULTD/3757_is_json_casing
#3757 sp_BlitzIndex is_JSON
2 parents 6961f8c + d7759d4 commit e772d51

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sp_BlitzIndex.sql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ IF OBJECT_ID('tempdb..#dm_db_index_operational_stats') IS NOT NULL
412412
is_spatial BIT NOT NULL,
413413
is_NC_columnstore BIT NOT NULL,
414414
is_CX_columnstore BIT NOT NULL,
415-
is_JSON BIT NOT NULL,
415+
is_json BIT NOT NULL,
416416
is_in_memory_oltp BIT NOT NULL ,
417417
is_disabled BIT NOT NULL ,
418418
is_hypothetical BIT NOT NULL ,
@@ -1499,7 +1499,7 @@ BEGIN TRY
14991499
CASE when si.type = 4 THEN 1 ELSE 0 END AS is_spatial,
15001500
CASE when si.type = 6 THEN 1 ELSE 0 END AS is_NC_columnstore,
15011501
CASE when si.type = 5 then 1 else 0 end as is_CX_columnstore,
1502-
CASE when si.type = 9 then 1 else 0 end as is_JSON,
1502+
CASE when si.type = 9 then 1 else 0 end as is_json,
15031503
CASE when si.data_space_id = 0 then 1 else 0 end as is_in_memory_oltp,
15041504
si.is_disabled,
15051505
si.is_hypothetical,
@@ -1562,7 +1562,7 @@ BEGIN TRY
15621562
PRINT SUBSTRING(@dsql, 36000, 40000);
15631563
END;
15641564
INSERT #IndexSanity ( [database_id], [object_id], [index_id], [index_type], [database_name], [schema_name], [object_name],
1565-
index_name, is_indexed_view, is_unique, is_primary_key, is_unique_constraint, is_XML, is_spatial, is_NC_columnstore, is_CX_columnstore, is_JSON, is_in_memory_oltp,
1565+
index_name, is_indexed_view, is_unique, is_primary_key, is_unique_constraint, is_XML, is_spatial, is_NC_columnstore, is_CX_columnstore, is_json, is_in_memory_oltp,
15661566
is_disabled, is_hypothetical, is_padded, fill_factor, filter_definition, [optimize_for_sequential_key], user_seeks, user_scans,
15671567
user_lookups, user_updates, last_user_seek, last_user_scan, last_user_lookup, last_user_update,
15681568
create_date, modify_date )

0 commit comments

Comments
 (0)