Commit d80ce752 authored by Max Kanat-Alexander's avatar Max Kanat-Alexander

Bug 538705: Assure that Bugzilla->dbh doesn't become invalid under MySQL during…

Bug 538705: Assure that Bugzilla->dbh doesn't become invalid under MySQL during long jobqueue.pl runs. Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=mkanat
parent db2e681e
......@@ -68,9 +68,13 @@ sub new {
$dsn .= ";port=$port" if $port;
$dsn .= ";mysql_socket=$sock" if $sock;
my $attrs = { mysql_enable_utf8 => Bugzilla->params->{'utf8'} };
my %attrs = (
mysql_enable_utf8 => Bugzilla->params->{'utf8'},
# Needs to be explicitly specified for command-line processes.
mysql_auto_reconnect => 1,
);
my $self = $class->db_new($dsn, $user, $pass, $attrs);
my $self = $class->db_new($dsn, $user, $pass, \%attrs);
# This makes sure that if the tables are encoded as UTF-8, we
# return their data correctly.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment