MSCEWI3130
For Loop and Fetch into a variable cannot be used on the same cursor
This is a deprecated version of the SnowConvert documentation, please visit the official site HERE.
Severity
Medium
Description
This warning appears when the same cursor declaration is used in a fetch statement into a variable, a loop, or a fetch into records. In this case, the use of fetch into variables is commented out.
Example Code
Input Code
Output Code
Recommendations
To support both scenarios, duplicating the cursor declaration is recommended so that each statement will use a separate cursor.
If you need more support, you can email us at snowconvert-support@snowflake.com
Last updated