Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mark declare statements with values as coverable #88

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pguyot
Copy link

@pguyot pguyot commented Mar 17, 2023

Mark declare statements SQL Server reports they are run.

How to test this code:

create or alter procedure test_cover as
begin
	declare @var int
		= 0
	declare @var1 int
		= (select 1 + 2)
	declare @var2 int
	declare @var3 int,
			@var4 int = 42,
			@var5 int
end
go

Has been tested on (remove any that don't apply):

  • SQL Server 2022 for Linux (Microsoft official Docker image)

SQL Server reports they are run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant