Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: OCIReset() always fails
Knut Stolze wrote:
> Dave Hau wrote on Friday 06 June 2003 17:24: > >
> > > Thanks, I'll see if the patch can be applied and then try again. > >>>5. OCITransCommit()
>>1. OCIHandleAlloc(stmthp)
>>2. OCIStmtPrepare(stmthp)
>>3. OCIStmtExecute(stmthp)
>>4. OCIBreak(svchp)
>>5. OCIReset(svchp)
>>4. OCIHandleFree(stmthp)
> > > Is there, by any chance, an explicit way to close the cursor before or after > the OCIBreak()? I hope I could use that as an interim work-around.
Try calling OCIStmtFetch() with the nrows parameter set to zero. This should cancel the cursor:
http://download-west.oracle.com/docs/cd/A87860_01/doc/appdev.817/a76975/oci15rel.htm#445550
Cheers,
Dave
Received on Fri Jun 06 2003 - 14:47:33 CDT