DBIx and execute_array (adding ArrayTupleStatus)

DBIx and execute_array (adding ArrayTupleStatus)

am 03.08.2006 21:15:29 von Martin.Evans

I am continuing work on DBIx::Log4perl because it helps my current
project but I've released it on CPAN in the hope it helps others. Whilst
writing my application I executed an execute_array without a
ArrayTupleStatus argument to execute_array but the method failed because
of a table constraint. Because the ArrayTupleStatus was not included I
got an error that was not too helpful.

My question is:

Is there any harm in a DBIx adding an ArrayTupleStatus to the call on to
DBI even if it was not present in the original call. In this way, the
DBIx could trap and record the error message even if the application
using DBI did not specify an ArrayTupleStatus.

Martin
--
Martin J. Evans
Easysoft Limited
http://www.easysoft.com

Re: DBIx and execute_array (adding ArrayTupleStatus)

am 04.08.2006 15:19:23 von Tim.Bunce

On Thu, Aug 03, 2006 at 08:15:29PM +0100, Martin J. Evans wrote:
> I am continuing work on DBIx::Log4perl because it helps my current
> project but I've released it on CPAN in the hope it helps others. Whilst
> writing my application I executed an execute_array without a
> ArrayTupleStatus argument to execute_array but the method failed because
> of a table constraint. Because the ArrayTupleStatus was not included I
> got an error that was not too helpful.
>
> My question is:
>
> Is there any harm in a DBIx adding an ArrayTupleStatus to the call on to
> DBI even if it was not present in the original call. In this way, the
> DBIx could trap and record the error message even if the application
> using DBI did not specify an ArrayTupleStatus.

Seems like a good idea to me.

Tim.