Exception Handling with cursors
ProhanNov 2 2009 — edited Nov 6 2009I just did some research into the issue of the automatic closing of cursors when the block that has opened them ends. Evidently, this happens in many circumstances, but it is not a documented feature, thus the programmer is not supposed to rely on it always working.
So does this mean that whenever you have a subprogram that opens a cursor you should have exception handlers with "Close" statements, in case the cursor is open at the time the exception is raised? Would that constitute "Best practices"? Thanks.