MSCEWI3133
Cursor variable has already been assigned
This is a deprecated version of the SnowConvert documentation, please visit the official site HERE.
Severity
Medium
Description
When an OPEN FOR
statement is converted, a cursor assignment with the same name as the cursor variable used in the input code is added along with other statements to emulate its functionality. Since it is possible to use multiple OPEN FOR
statements with the same cursor variable, there will be multiple cursor assignments with the same name in the output code. Leaving the output code as it is will cause compilation errors when executed in Snowflake.
Example code
Input code
Output code
Recommendations
To solve the compilation errors of the output code the cursor assignments that have the MSCEWI3133 message should be renamed.
If you need more support, you can email us at snowconvert-support@snowflake.com
Last updated