From 81be2e66f63ce49730c822173ceddf857b0eb845 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 (cherry picked from commit 493e62aad82931304bdcf2c63152451aed781b16) Signed-off-by: Aleisha Amohia --- Koha/Database.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/Koha/Database.pm b/Koha/Database.pm index c04c60921c..3ab6952b80 100644 --- a/Koha/Database.pm +++ b/Koha/Database.pm @@ -96,6 +96,7 @@ sub _new_schema { PrintError => 1, unsafe => 1, quote_names => 1, + auto_savepoint => 1, on_connect_do => [ $encoding_query || (), $tz_query || (), -- 2.39.5