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: Will Hartung <Will.Hartung_at_msoft.com>
Date: Wed, 16 Dec 1998 19:25:03 GMT
Message-ID: <jOTd2.547$UY2.3081609@newsfeed.intelenet.net>


>> OCIDefine *defnp = NULL;
>
>// Here is a key
> OCIHandleAlloc( stmthp,(void ** ) &defnp,OCI_HTYPE_BIND,1,(void ** )
&tmp);
> {
>> sword swResult = OCIDefineByPos(stmthp, &defnp, errhp,
>> nPos, pObject, nLength, swType, pIndicators, NULL, NULL,
OCI_DEFAULT);
>
>Hi,
>Try to implicitly allocate bind handle (see above). It must work.
>

Well, I figured it out. Here is the new code:

sword swResult;

swResult = OCIDefineByPos(stmthp, &defnp, errhp,

     nPos, pObject, nLength, swType, pIndicators, NULL, NULL, OCI_DEFAULT);

You'll note that the only difference is that swResult is not "initialized" with OCIDefine.... It looks like some kind of compiler faux pas. Received on Wed Dec 16 1998 - 13:25:03 CST

Original text of this message

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