]> git.koha-community.org Git - koha.git/commit
Bug 14097: Rollback issue and warning corrected
authorJulian FIOL <julian.fiol@biblibre.com>
Tue, 12 May 2015 12:28:56 +0000 (14:28 +0200)
committerJulian Maurice <julian.maurice@biblibre.com>
Mon, 7 Mar 2016 13:22:07 +0000 (14:22 +0100)
commit4199049064c9b145d4083cdb57ab2917346c7f74
treeb925dc6a7f41bbafb2c53fa743857b700c156d68
parentfaa3e05af72f06baef9616d3059054ae14a35175
Bug 14097: Rollback issue and warning corrected

The rollback issue came from '_count' testing.
It used a 'DROP TABLE' and 'CREATE TABLE' which implicitly do autocommit.
That's why the final rollback could not be.

This patch no longer uses t::lib::TestBuilder either because it was the cause
of the warning on Comment #1 :
"DBIx::Class::Storage::txn_rollback(): A txn_rollback
in nested transaction is ineffective! (depth 1) at
t/lib/TestBuilder.pm line 308"

Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Now data is preserved, no errors.

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Brendan Gallagher brendan@bywatersolutions.com
(cherry picked from commit afe9d02a819adfeec9468600805ee06df6082b21)
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
t/db_dependent/UsageStats.t