Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Question about OCI 8 handles.
>> 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