From dabce94fb022f1d97f0bd13aad4e7d7f551005f6 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 26 Oct 2018 11:17:40 -0300 Subject: [PATCH] Bug 21684: Add auto_savepoint to DBIC connection 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? --- Koha/Database.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/Koha/Database.pm b/Koha/Database.pm index 56ffc46488..f959325b65 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.11.0