On Thu, Aug 16, 2001 at 01:49:28PM -0700, Rob McMillin wrote:
> Tim Bunce wrote:
> 
> > Try a $update->bind_param_inout(..., { ora_type => ORA_RSET }) so 
> > oracle knows you're passing a cursor. Use trace to see more detail.
> 
> Okay, specifics? While I got the select to work okay, I have yet to see
> a working example of UPDATE ... WHERE CURRENT OF in Oracle using DBI.

Neither have I, but then I've never tried. I was simply observing that
this code:

> > $update = $dbh->prepare("begin\n".
> >                         "  update a set b=? where current of ?;\n".
> >                         "end");

> >     $update->execute($f[0]+1,$cursor);

didn't tell DBD::Oracle to bind $cusros as a cursor so it would be
bound as a string (of pseudorandom chars) and thus not work.

The $update->bind_param_inout(..., { ora_type => ORA_RSET }) may
not fix the problem, but would be a big step in the right direction.

Tim.

Reply via email to