Commit 3bcc848
sp_HumanEvents: restore 1/0 idiom in CATCH session-existence EXISTS checks
PR #808 changed SELECT 1/0 to SELECT 1 in the two EXISTS checks on a
reviewer suggestion, but the SELECT list inside EXISTS is never evaluated,
so there is no divide-by-zero risk. 1/0 is the house style for EXISTS in
this codebase; revert both checks to it.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent a329b69 commit 3bcc848
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5022 | 5022 | | |
5023 | 5023 | | |
5024 | 5024 | | |
5025 | | - | |
| 5025 | + | |
5026 | 5026 | | |
5027 | 5027 | | |
5028 | 5028 | | |
| |||
5038 | 5038 | | |
5039 | 5039 | | |
5040 | 5040 | | |
5041 | | - | |
| 5041 | + | |
5042 | 5042 | | |
5043 | 5043 | | |
5044 | 5044 | | |
| |||
0 commit comments