Re: Help: Oracle 8 OCI
Date: Fri, 16 Aug 2002 11:44:21 +0100
Message-ID: <3D5CD785.1070007_at_elcaro.moc>
Try:
// stmthp is the statement handle and errhp is the error handle
short offset;
if( OCIAttrGet((dvoid *)stmthp, (ub4)OCI_HTYPE_STMT, (dvoid *)&offset,
(ub4 *)0, (ub4)OCI_ATTR_PARSE_ERROR_OFFSET, errhp)){
// An error has occured
return;
}
This attribute is documented in Appendix A of the Oracle 8 Call Interface Programmers Guide Volume 2, Release 8.1.5 (A67847-01).
Dave.
Chris Lopeman wrote:
> Hi all,
>
> I'm new here and I am sure that this will be an easy question for you
> experts to answer.
>
> I am doing some light work with the Oracle 8 OCI and I am having a
> problem finding a value that was pretty straight forward in 7. I am
> trying to find what use to be referred to as the Parse Error Offset.
> Basically an integer attempting to identify the bad spot in the query.
> Like the location of bad column name. I have found OCIErrorGet and
> assume this is the place to get the information from but just can't find
>
> it. I am sure I am missing something simple.
>
> Thanks ahead of time,
>
> Chris
>
-- Email address munged to avoid SPAM Reverse the last two parts to reply directlyReceived on Fri Aug 16 2002 - 12:44:21 CEST