]> 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)
committerBrendan Gallagher <brendan@bywatersolutions.com>
Wed, 24 Feb 2016 03:04:35 +0000 (03:04 +0000)
commitafe9d02a819adfeec9468600805ee06df6082b21
tree10286c5b03f3ed212e52cfb47c685d6dc62fa53f
parentacf2e684bd4118d40e3bc89b09c0852bc8732d04
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
t/db_dependent/UsageStats.t