Browse Source

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>
20.11.x
Jonathan Druart 3 years ago
parent
commit
bd63fb2bb9
  1. 1
      Koha/Database.pm

1
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 || (),

Loading…
Cancel
Save