View | Details | Raw Unified | Return to bug 11891
Collapse All | Expand All

(-)a/Koha/Database.pm (-2 / +6 lines)
Lines 45-51 __PACKAGE__->mk_accessors(qw( )); Link Here
45
# database connection from the data given in the current context, and
45
# database connection from the data given in the current context, and
46
# returns it.
46
# returns it.
47
sub _new_schema {
47
sub _new_schema {
48
    my $schema = Koha::Schema->connect( sub { C4::Context->dbh } );
48
49
    my $context = C4::Context->new();
50
51
    # we are letting C4::Context->dbh not set the RaiseError handle attribute
52
    # for now for compatbility purposes
53
    my $schema = Koha::Schema->connect( sub { C4::Context->dbh }, { unsafe => 1 } );
49
    return $schema;
54
    return $schema;
50
}
55
}
51
56
52
- 

Return to bug 11891