Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.tools -> Closing opened cursors

Closing opened cursors

From: Chris Roy <chris_at_hasc.com>
Date: Mon, 19 Mar 2001 16:41:22 -0500
Message-ID: <3AB67D02.27DAC4B0@hasc.com>

  Using the old oracle 7 oci I've run into a simple problem. If oclose is called twice on a cursor the
"ORA-01001: invalid cursor" error is generated. The question is how do you check if a cursor has been
opened?

    if (&(secondCursor)) {

        if (oclose(&(secondCursor))) {
             flagError(&(secondCursor));
        }

    }
                            Chris
Received on Mon Mar 19 2001 - 15:41:22 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US