Is ArrayTupleStatus in execute_array mandatory?
am 29.03.2006 16:57:39 von Martin.Evans
According to the docs for execute_array:
"The mandatory ArrayTupleStatus attribute is used to specify a reference to
array which will receive the execute status of each executed parameter tuple."
It would appear in DBI 1.50 you can omit it:
$sth->execute_array({ });
Is it mandatory and the docs are correct or is it that DBI does not check for
its existence?
Martin
--
Martin J. Evans
Easysoft Ltd, UK
http://www.easysoft.com
Re: Is ArrayTupleStatus in execute_array mandatory?
am 29.03.2006 21:21:13 von Tim.Bunce
On Wed, Mar 29, 2006 at 03:57:39PM +0100, Martin J. Evans wrote:
> According to the docs for execute_array:
>
> "The mandatory ArrayTupleStatus attribute is used to specify a reference to
> array which will receive the execute status of each executed parameter tuple."
>
> It would appear in DBI 1.50 you can omit it:
>
> $sth->execute_array({ });
>
> Is it mandatory and the docs are correct or is it that DBI does not check for
> its existence?
Um, ... checking the Changes file I find:
=head2 Changes in DBI 1.38, 21th August 2003
...
Changed execute_array() to no longer require ArrayTupleStatus attribute.
...
I've updated the docs.
Thanks.
Tim.