http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14778

--- Comment #9 from Jonathan Druart <jonathan.dru...@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.
_______________________________________________
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to