MSCEWI4036
Snowflake Scripting only supports Local Cursors.
Severity
Description
Code Example
Input Code:
CREATE OR ALTER PROCEDURE globalCursorTest
AS
BEGIN
-- Should be marked with MSCEWI4036
DECLARE MyCursor CURSOR GLOBAL STATIC READ_ONLY
FOR
SELECT *
FROM exampleTable;
-- Should not be marked
DECLARE MyCursor2 CURSOR LOCAL STATIC READ_ONLY
FOR
SELECT testCol
FROM myTable;
RETURN 'DONE';
END;Output Code:
Recommendations
Last updated
