Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: OCI Clob bind
Simeon Bailey wrote:
> Hey :),
> I am attempting to: insert into tablename (empty_clob()) returning
> clobcol into :val1
I have solved my own problem soln:
When binding out vars which are clobs the cbf_get_data() callback cannot
provide NULL pointers as is done in Oracle's example code:
static sb4 cbf_get_data(dvoid *ctxp, OCIBind *bindp, ub4 iter, ub4 index, dvoid **bufpp, ub4 **alenp, ub1 *piecep, dvoid **indpp, ub2 **rcodepp){
*bufpp = (dvoid *) 0; *alenp = 0; *indpp = (dvoid *) 0; *rcodepp = 0;
*piecep = OCI_ONE_PIECE;
return OCI_CONTINUE;
}
Received on Sat Apr 03 1999 - 22:00:34 CST
![]() |
![]() |