| |
- Causa
- O CURSOR identificado em uma declaração de UPDATE (alteração) ou DELETE (exclução) não está aberto (não foi dado um OPEN no mesmo).
O programa de aplicação tentou executar um UPDATE ou um DELETE WHERE CURRENT OF mas o CURSOR especificado não estava aberto.
- Ação do sistema
- A declaração não pode ser executada.
Nenhuma alteração (UPDATE) ou exclusão (DELETE) foi executada.
- Resposta ao Desenvolvedor
- Check for a previous SQL return code that might have closed the cursor. SQLCODES -404, -652, -679, -901, -904, -909, -910, -911, and -913 force
the cursor to close.
After the cursor is closed, any fetches or close cursor statements receive SQLCODE -501.
Any updates or deletes receive this SQLCODE -507.
Correct the logic of the application program to ensure that the specified cursor is open at the time the UPDATE or DELETE statement is executed.
SQLSTATE: 24501
© Copyright IBM Corp.
|
| |