Skip to content

Commit

Permalink
Fix SR0015 issues
Browse files Browse the repository at this point in the history
  • Loading branch information
cagrin committed Mar 7, 2024
1 parent 4764bb4 commit d334a53
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion latest/SqlCodeAnalysisRules.props
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<Project>
<PropertyGroup>
<CodeAnalysisRules>-Microsoft.Rules.Data.SR0013; $(CodeAnalysisRules)</CodeAnalysisRules>
<CodeAnalysisRules>-Microsoft.Rules.Data.SR0015; $(CodeAnalysisRules)</CodeAnalysisRules>
<CodeAnalysisRules>-SqlServer.Rules.SRD0001; $(CodeAnalysisRules)</CodeAnalysisRules>
<CodeAnalysisRules>-SqlServer.Rules.SRD0002; $(CodeAnalysisRules)</CodeAnalysisRules>
<CodeAnalysisRules>-SqlServer.Rules.SRD0006; $(CodeAnalysisRules)</CodeAnalysisRules>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ BEGIN
SET @_i_ = @_i_ + 1
END

SET @Scalar = ISNULL(@Scalar, 0)
SELECT
@ParametersWithTypes = STRING_AGG
(
Expand All @@ -88,6 +89,6 @@ BEGIN
', '
) WITHIN GROUP (ORDER BY parameter_id)
FROM @Result
WHERE (@Scalar = 1 AND parameter_id > 0) OR ISNULL(@Scalar, 0) = 0
WHERE (@Scalar = 1 AND parameter_id > 0) OR @Scalar = 0
END;
GO

0 comments on commit d334a53

Please sign in to comment.