MSCEWI5009

POSITIONED STATEMENT IS NOT SUPPORTED.

This is a deprecated version of the SnowConvert documentation, please visit the official site HERE.

Severity

Medium

Description

Snowflake does not support the use of cursors as part of the Delete statement and Update statement. If the statement is migrated partially, we will get rid of the where clause in which the cursor is forming part, making it dangerous to delete or update the whole table. For this reason, the complete statement will be commented out with this EWI.

Code example

DB2

DELETE FROM table1 
WHERE CURRENT OF cursor1

Snowflake

-- ** MSC-ERROR - MSCEWI5009 - POSITIONED DELETE IS NOT SUPPORTED. **
--DELETE FROM table1
--WHERE CURRENT OF cursor1

Recommendations

Last updated