Previous Topic: -501 - INVALID CURSOR STATE (STMT - ID=aaaa)Next Topic: -504 - PLAN OPTION ERROR: error-string


-502 - CURSOR ALREADY OPEN

Explanation

A plan running in SQLMODE=DB2 mode has attempted to open a cursor that is already open.

The SQLSTATE that equates to this SQL return code is 24502.

User Response

Correct the application logic.