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

Home -> Community -> Usenet -> c.d.o.misc -> Re: URGENT: Problem with cursor

Re: URGENT: Problem with cursor

From: andrewst <member14183_at_dbforums.com>
Date: Tue, 26 Aug 2003 06:05:44 -0400
Message-ID: <3284899.1061892344@dbforums.com>

Originally posted by Joan Sanchez

> When I execute the following code, the cursor doesn't retreive

> any row, but If I execute the select in svrmgrl a row is retrevied

> to me.

>

> Does anyone know the reason?

> [snip]

> open cLOCK(lILCK,lETID);

> if cLOCK%FOUND then

> fetch cLOCK into sITEM_LOCK, lCDAD_LOCK;

>

%FOUND checks the result of FETCH. not of OPEN. So your code should say:

            open cLOCK(lILCK,lETID);

            fetch cLOCK into sITEM_LOCK, lCDAD_LOCK;

            if cLOCK%FOUND then ...

--
Posted via http://dbforums.com
Received on Tue Aug 26 2003 - 05:05:44 CDT

Original text of this message

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