Previous Topic: -310 - COMBINATION OF CHECKPLAN=checkplan_value, CHECKWHO=checkwho_value, AND CHECKWHEN=checkwhen_value IS INVALIDNext Topic: -312 - NO SQLDA FOR EXECUTE OF A STATEMENT WITH PARAMETER MARKERS


-311 - EMBEDDED UPDATE OR DELETE REFERENCES DYNAMIC CURSOR

Explanation

The embedded static SQL UPDATE or DELETE statement includes a cursor name that references a dynamic cursor in the "WHERE CURRENT OF cursor_name" clause.

The SQLSTATE that equates to this SQL return code is 07S10.

User Response

Modify the UPDATE or DELETE statement to be executed dynamically or change the cursor_name to point to a static cursor.