Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: help wanted: OCI insert with array of indicator variables
matt.freestone_at_gmail.com wrote:
<snip>
>
> Am I right to read that as saying that the indicator is at the column
> level rather than the field level? If I pass a parallel array of
> indicators to OCIBindByPos along with my array of column data, and set
> the indskip parameter of OCIDefineArrayOfStruct to sizeof(sb2) then the
> indicators that are set to -1 are ignored, and I get garbage data
> rather than nulls in the fields.
>
> Can I use indicators this way? What am I doing wrong?
>
I've solved my own problem. In case it's relevant to anyone else - you
can use an array of indicators in the way I asked about. I had a dodgy
type conversion that was stopping the values being used correctly.
cheers,
-- Matt FreestoneReceived on Tue Jan 16 2007 - 08:57:02 CST
![]() |
![]() |