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: Question about OCI 8 handles.

Re: Question about OCI 8 handles.

From: <mgogala_at_rocketmail.com>
Date: Wed, 16 Dec 1998 04:27:55 GMT
Message-ID: <757csa$idq$1@nnrp1.dejanews.com>


In article <txAd2.431$UY2.2496164_at_newsfeed.intelenet.net>,   "Will Hartung" <Will.Hartung_at_msoft.com> wrote:
> My first cut at calling OCIDefineByPos is blurting about an invalid handle.
> It only requires 3 handles, the statement, define and error handle. Define
> is a null pointer (like the examples), and the others are...well...handles,
> I guess.
>
> I couldn't say whether it's the error handle for the statement handle that
> is having the problem, save that they both seem to work in an earlier
> OCIBindByName call.
>
> Here's the relevant snippet:
>
> OCIDefine *defnp = NULL;
>
> sword swResult = OCIDefineByPos(stmthp, &defnp, errhp,
> nPos, pObject, nLength, swType, pIndicators, NULL, NULL, OCI_DEFAULT);
>
> Any ideas?
>
> Thanx!
>
> Will Hartung
> (willh_at_msoft.com)
>
>

Have you tried something like
OCIDefine *defnp = (OCIDefine *)0;
I know about the NULL pointer, but sometimes, some compilers don't get it right.
--
Mladen Gogala

-----------== Posted via Deja News, The Discussion Network ==---------- http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own Received on Tue Dec 15 1998 - 22:27:55 CST

Original text of this message

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