SQL adaptation guide For Genero db 3.6x, 3.8x / BDL programming |
Informix® allows positioned UPDATEs and DELETEs with the "WHERE CURRENT OF cursor" clause, if the cursor has been DECLARED with a SELECT ... FOR UPDATE statement.
DECLARE cur1 CURSOR FOR SELECT * FROM mytable WHERE 1=1 FOR UPDATE BEGIN WORK OPEN cur1 FETCH cur1 INTO x, chr UPDATE mytable SET mycol2 = "updated" WHERE CURRENT OF cur1 CLOSE cur1 COMMIT WORK
Check that your programs correctly put WHERE CURRENT OF inside a transaction.