[Koha-bugs] [Bug 14097] Add unit tests to C4::UsageStats
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Mon May 4 11:27:38 CEST 2015
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14097
--- Comment #5 from Julian FIOL <julian.fiol at biblibre.com> ---
About Comment #3
After some tests, it seems that if the script stops / exits / fails for
whatever reason after following lines, there is no $dbh->rollback, and the
changes of the DB remains...
my $dbh = C4::Context->dbh;
$dbh->{AutoCommit} = 0;
$dbh->{RaiseError} = 1;
$dbh->do('DELETE FROM biblio');
$dbh->do('DELETE FROM items');
$dbh->do('DELETE FROM auth_header');
$dbh->do('DELETE FROM old_issues');
$dbh->do('DELETE FROM old_reserves');
$dbh->do('DELETE FROM borrowers');
$dbh->do('DELETE FROM aqorders');
$dbh->do('DELETE FROM subscription');
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list