]> git.koha-community.org Git - koha.git/commit
Bug 26639: Add auto_savepoint to DBIC connection
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 26 Oct 2018 14:17:40 +0000 (11:17 -0300)
committerVictor Grousset/tuxayo <victor@tuxayo.net>
Tue, 17 Nov 2020 13:16:33 +0000 (14:16 +0100)
commita5c2090ff5853f839a8021d52494cfcba9a2c1be
tree4643bd3b527818eecca288a178f670a8b45de2d8
parent5f59c30c9f3c50229c85fd34bbedbe5b75c07310
Bug 26639: Add auto_savepoint to DBIC connection

See comment 0.

https://metacpan.org/pod/distribution/DBIx-Class/lib/DBIx/Class/Manual/Cookbook.pod#Nested-transactions-and-auto-savepoints

Otherwise:
DBIx::Class::Storage::txn_rollback(): A txn_rollback in nested transaction is ineffective! (depth 1) at t/db_dependent/Koha/Objects.t line 274

Possible side-effects? Slowness?

We need to push it to master ASAP and see how our test suite behave.

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit bd63fb2bb941294371a072fea9fc2f930ff5bf3f)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 493e62aad82931304bdcf2c63152451aed781b16)

Signed-off-by: Aleisha Amohia <aleishaamohia@hotmail.com>
(cherry picked from commit 81be2e66f63ce49730c822173ceddf857b0eb845)
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Koha/Database.pm