SSC-EWI-OR0133
Cursor variable has already been assigned
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
Related EWI
SSC-EWI-0030: The statement below has usages of dynamic SQL.
Recommendations
To solve the compilation errors of the output code the cursor assignments that have the SSC-EWI-OR0133 message should be renamed.
If you need more support, you can email us at snowconvert-support@snowflake.com
Last updated