Hello,
I have defined the following cursor in my stored procedure:
CURSOR CSrc_Dir IS
SELECT dir_location
FROM InvRelief_Dir_Info
WHERE stock_or_ca = 'REPORTS';
I used the following cursor in my procedure body using the OPEN CURSOR - FETCH INTO variable - CLOSE CURSOR commands.
If the given record exists in table INVRELIEF_DIR_INFO, then the procedure successfully completes execution.
In case a record is not found, the stored procedure seems to hang and never displays the message that it successfully executed. Even the windows task manager will tell me that PL/SQL is not responding.
The open-fetch-close command is used with BEGIN-EXCEPTION-END block, and it doesn't seem to throw the WHEN OTHERS exception.
Has anyone seen a similar situation and has an explanation for this?
Thanks,
Jay.
I have defined the following cursor in my stored procedure:
CURSOR CSrc_Dir IS
SELECT dir_location
FROM InvRelief_Dir_Info
WHERE stock_or_ca = 'REPORTS';
I used the following cursor in my procedure body using the OPEN CURSOR - FETCH INTO variable - CLOSE CURSOR commands.
If the given record exists in table INVRELIEF_DIR_INFO, then the procedure successfully completes execution.
In case a record is not found, the stored procedure seems to hang and never displays the message that it successfully executed. Even the windows task manager will tell me that PL/SQL is not responding.
The open-fetch-close command is used with BEGIN-EXCEPTION-END block, and it doesn't seem to throw the WHEN OTHERS exception.
Has anyone seen a similar situation and has an explanation for this?
Thanks,
Jay.