Bug 16445: Revert changes made by bug 12478 to Koha/Database.pm
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 4 May 2016 19:46:20 +0000 (20:46 +0100)
committerBrendan Gallagher <bredan@bywatersolutions.com>
Thu, 5 May 2016 19:51:01 +0000 (19:51 +0000)
These changes were a mistake, let's revert them.

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Brendan Gallagher <bredan@bywatersolutions.com>
Koha/Database.pm

index ff289c2..a8f4eab 100644 (file)
@@ -41,8 +41,6 @@ use vars qw($database);
 
 __PACKAGE__->mk_accessors(qw( ));
 
-our $schema; # the schema is a singleton
-
 # _new_schema
 # Internal helper function (not a method!). This creates a new
 # database connection from the data given in the current context, and
@@ -112,7 +110,8 @@ creates one, and connects to the database.
 
 This database handle is cached for future use: if you call
 C<$database-E<gt>schema> twice, you will get the same handle both
-times. If you need a second database handle, use C<&new_schema>.
+times. If you need a second database handle, use C<&new_schema> and
+possibly C<&set_schema>.
 
 =cut