Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> (OCI, piecewise) oexec returns ORA-3129 after osetpi with OCI_LAST_PIECE
Hi All
I'm trying to create a test program to "play" with piecewise
operations. I took the example from the OCI
and implemented it with only minor changes , but after I issue a
osetpi with a OCI_LAST_PIECE I still get ORA-03129 after the oexec.
Any ideas?
Attached is my code (the piecewise loop only)
thanks in advance
Shaya
Piece = OCI_FIRST_PIECE; while(cont) { oexec(&cda); switch(cda.rc) { case 0: cont = 0;/* end of insert */ break; case OCI_MORE_INSERT_PIECES: count++; ogetpi(&cda, &Piece, &Context, &Iter,&PlsqlTab);
if (count > 20)Received on Thu Sep 30 1999 - 05:21:11 CDT
{
Piece = OCI_LAST_PIECE; } osetpi(&cda,Piece,pPieceBuf,&BufSize); if (Piece == OCI_FIRST_PIECE)
{
Piece = OCI_NEXT_PIECE; } break; default: exit_oci(cda); }/* end switch */ } ocom(&lda); /* commit */
![]() |
![]() |