[Koha-devel] Issues with DBIx and nested transactions

Tomas Cohen Arazi tomascohen at gmail.com
Thu Jun 4 20:20:28 CEST 2015


2015-06-04 14:48 GMT-03:00 Galen Charlton <gmc at esilibrary.com>:
>
> Hi,
>
> On Thu, Jun 4, 2015 at 1:13 PM, Tomas Cohen Arazi <tomascohen at gmail.com>
wrote:
> > to our (abuse?) of $dbh->{AutoCommit} = 0 on the tests.
>
> Not abuse - one way or another, the DB-dependent tests really ought
> not to be make permanent changes to the database.

Agreed.

> > Before someone says it: reverting the commits will put us back to the
> > previous state, of course. But it will just hide the problem for a
while.
>
> Time to revert regardless. :)

Unless we do what you propose :)

> However, here's a diff that shows one way to get DBIx::Class and DBI
> to stop fighting over who gets to control the transaction:
> http://paste.lisp.org/display/149194

Thanks for the solution.

--
Tomás Cohen Arazi
Prosecretaría de Informática
Universidad Nacional de Córdoba
✆ +54 351 5353750 ext 13168
GPG: B76C 6E7C 2D80 551A C765  E225 0A27 2EA1 B2F3 C15F
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.koha-community.org/pipermail/koha-devel/attachments/20150604/d66d2a72/attachment-0001.html>


More information about the Koha-devel mailing list