MSCEWI4028
Labels inside user-defined function were removed
This is a deprecated version of the SnowConvert documentation, please visit the official site HERE.
Severity
Low
Description
This EWI is added when there are LABEL and GOTO usages in an user-defined function body. The statements will be removed because Snowflake does not support labels.
The labels content will be added instead of the GOTO instances calling a label.
Code Example
Input Code:
CREATE OR ALTER FUNCTION [PURCHASING].[FOO]
(
@BUSINESSENTITYID INT
)
returns varchar(50)
AS
BEGIN
DECLARE @result varchar(50)
SELECT @result = v.AccountNumber FROM PURCHASING.VENDOR v WHERE v.BUSINESSENTITYID = @BUSINESSENTITYID
IF @result = 'ALLENSON0001'
BEGIN
GOTO ExitF
END
ExitF:
RETURN @result
ENDOutput Code:
Recommendations
No additional user actions are required.
If you need more support, you can email us at [email protected]
Last updated
