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: help wanted: OCI insert with array of indicator variables

Re: help wanted: OCI insert with array of indicator variables

From: <matt.freestone_at_gmail.com>
Date: 16 Jan 2007 06:57:02 -0800
Message-ID: <1168959421.607710.249830@a75g2000cwd.googlegroups.com>

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 Freestone
Received on Tue Jan 16 2007 - 08:57:02 CST

Original text of this message

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