From 15302bdda69ab840948ade37d633e2a29a87f8dc Mon Sep 17 00:00:00 2001 From: Fridolin Somers Date: Wed, 10 Jun 2015 14:52:40 +0200 Subject: [PATCH] Bug 14374 - dont use mysql_auto_reconnect with BDIx::Connector BDIx::Connector doc indicates that handler option mysql_auto_reconnect must be false. See http://search.cpan.org/perldoc?DBIx%3A%3AConnector%3A%3ADriver%3A%3Amysql This patch removes this option setting in C4::Context Test plan : - Check connection to database does not fail for a long time page, such as a huge report --- C4/Context.pm | 4 ---- 1 file changed, 4 deletions(-) diff --git a/C4/Context.pm b/C4/Context.pm index 3e3f00c..4386792 100644 --- a/C4/Context.pm +++ b/C4/Context.pm @@ -776,10 +776,6 @@ sub _new_dbh $dbh->{RaiseError} = 0; } - if ( $db_driver eq 'mysql' ) { - $dbh->{mysql_auto_reconnect} = 1; - } - my $tz = $ENV{TZ}; if ( $db_driver eq 'mysql' ) { # Koha 3.0 is utf-8, so force utf8 communication between mySQL and koha, whatever the mysql default config. -- 2.1.0