From 493e62aad82931304bdcf2c63152451aed781b16 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 26 Oct 2018 11:17:40 -0300 Subject: [PATCH] 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 Signed-off-by: Marcel de Rooy Signed-off-by: Jonathan Druart (cherry picked from commit bd63fb2bb941294371a072fea9fc2f930ff5bf3f) Signed-off-by: Lucas Gass --- Koha/Database.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/Koha/Database.pm b/Koha/Database.pm index 55baf80537..f000a78494 100644 --- a/Koha/Database.pm +++ b/Koha/Database.pm @@ -105,6 +105,7 @@ sub _new_schema { PrintError => 1, unsafe => !$RaiseError, quote_names => 1, + auto_savepoint => 1, on_connect_do => [ $encoding_query || (), $tz_query || (), -- 2.39.5