On Fri, May 30, 2003 at 10:56:35AM +0100, Brian McCauley wrote:
> "Richard Sames" <[EMAIL PROTECTED]> writes:
> 
> > The error message reads
> > 'DBD::Proxy::st execute_array failed: ArrayTupleStatus 
> > attribute must be an arrayref at 
> > /home/rjs/perl/WCL/Web/Binding.pm line 1058'
> 
> I just upgraded the development environment to DBI 1.37.
> 
> I'm sure the ArrayTupleStatus attribute is not intended to be
> mandatory but the new sanity check in execute_array() does not allow
> for this.

It's always a good idea to read the change notes...

=head2 Changes in DBI 1.36,    11th May 2003
 
  ...
  Changed execute_array() return value from row count to executed
    tuple count, and now the ArrayTupleStatus attribute is mandatory.
    NOTE: That is an API definition change that may affect your code.

=cut

> We don't need to get back the status on each insert because we are
> using DBI in RaiseError mode.

That only tells you something went wrong, not exactly what tuple
was affected.

And for execute_array of delete/update statements you need
ArrayTupleStatus if you want to get the total row count.

Tim.

Reply via email to