[Koha-bugs] [Bug 14778] Get rid of DBIx::Connector
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Fri Sep 4 13:27:25 CEST 2015
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14778
--- Comment #9 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
I have also tried
diff --git a/Koha/Database.pm b/Koha/Database.pm
index 014554f..619ba6e 100644
--- a/Koha/Database.pm
+++ b/Koha/Database.pm
@@ -118,7 +118,10 @@ sub schema {
my $params = shift;
unless ( $params->{new} ) {
- return $database->{schema} if defined $database->{schema};
+ if ( defined $database->{schema} ) {
+ $database->{schema}->storage->ensure_connected
+ and return $database->{schema};
+ }
}
$database->{schema} = &_new_schema();
But
% time perl benchmark_bookseller.pl
perl benchmark_bookseller.pl 7.14s user 0.18s system 11% cpu 1:03.67 total
I am not sure it is useful, DBIC certainly checks it on its side.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list