"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.

        return $sth->DBI::set_err(1, "ArrayTupleStatus attribute must be an arrayref")
                if ref $tuple_sts ne 'ARRAY';

Sould be:

        return $sth->DBI::set_err(1, "ArrayTupleStatus attribute must be an arrayref")
                if $tuple_sts && ref $tuple_sts ne 'ARRAY';

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

For now I've worked around this by putting { ArrayTupleStatus => [] }
in the Binding.pm - that should fix it.


Reply via email to