SSC-EWI-PG0006
Reference to a variable using the Label is not supported by Snowflake.
Severity
Medium
Description
This error is added when a FOR loop's body references a variable using the label. Snowflake does not support referencing a variable using the qualified name.
Code Example
Input Code:
CREATE OR REPLACE PROCEDURE procedure1(out result VARCHAR(100))
LANGUAGE plpgsql
AS $$
BEGIN
result := '<';
<<outer_loop>>
for i in 1..3 loop
<<inner_loop>>
for i in 4..6 loop
result := result || '(' || outer_loop.i || ', ' || i || ')';
end loop inner_loop;
end loop outer_loop;
result := result || '>';
END;
$$;Output Code:
Recommendations
If you need more support, you can email us at [email protected]
Last updated
