Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: getting OIDs with OCI
Charles,
Use OCIRefToHex to do it.
John.
car_door_at_hotmail.com wrote in message <7mibj1$jom$1_at_nnrp1.deja.com>...
>I'm implementing an application that displays the text value of REF
>column OIDs and row OIDs. I'm able to fetch the OID into an OCIRef *
>using OCI, but I'd like to know how to get the "text" of the OID so I
>can display it. That is, I'd like to get a string like
>"0002084eafef...". By following the OCIRef * pointer I get back, I'm
>able to get most of the first OID. I don't get the first byte, though,
>and I can't seem to find subsequent OIDs.
>
>I tried fetching the OID into a SQLT_STR, but I got an "inconsistant
>dataypes" error.
>
>Thanks.
>
>Charles
>
>
>Sent via Deja.com http://www.deja.com/
>Share what you know. Learn what you don't.
Received on Fri Jul 16 1999 - 04:37:12 CDT