[Koha-bugs] [Bug 20089] Does Koha::Database->schema always return a connected object?

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Aug 14 16:34:01 CEST 2019


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20089

--- Comment #1 from Marcel de Rooy <m.de.rooy at rijksmuseum.nl> ---
For the record:

-        return $database->{schema} if defined $database->{schema};
+        my $schema = $database->{schema};
+        if( $schema && $schema->storage->connected ) {
+            return $schema;

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.


More information about the Koha-bugs mailing list