Skip to content

Commit 0cc8819

Browse files
committed
feat: lower event type to avoid redundancy
1 parent b4879e1 commit 0cc8819

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

sp_HumanEvents/sp_HumanEvents.sql

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -812,6 +812,8 @@ SET @output_schema_name = ISNULL(@output_schema_name, N'');
812812

813813
/*I'm also very forgiving of some white space*/
814814
SET @database_name = RTRIM(LTRIM(@database_name));
815+
/*Forgive my case*/
816+
SET @event_type = LOWER(@event_type);
815817

816818
/*Assemble the full object name for easier wrangling*/
817819
SET @fully_formed_babby =
@@ -824,7 +826,7 @@ SET @fully_formed_babby =
824826
/*Some sanity checking*/
825827
IF @debug = 1 BEGIN RAISERROR(N'Sanity checking event types', 0, 1) WITH NOWAIT; END;
826828
/* You can only do this right now. */
827-
IF LOWER(@event_type) NOT IN
829+
IF @event_type NOT IN
828830
(
829831
N'waits',
830832
N'blocking',

0 commit comments

Comments
 (0)