Commit 4210d293 authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 463380: [Mysql] "Use of uninitialized value" when running checksetup.pl for…

Bug 463380: [Mysql] "Use of uninitialized value" when running checksetup.pl for the very first time - Patch by Fré©ric Buclin <LpSolit@gmail.com> r/a=mkanat
parent a119de4a
......@@ -108,7 +108,9 @@ sub new {
my $min_max_allowed_packet = MAX_COMMENTS * MAX_COMMENT_LENGTH;
my $max_allowed_packet = max($min_max_allowed_packet,
$current_max_allowed,
Bugzilla->params->{'maxattachmentsize'});
# This parameter is not yet defined when the DB
# is being built for the very first time.
Bugzilla->params->{'maxattachmentsize'} || 0);
$self->do("SET SESSION max_allowed_packet = $max_allowed_packet");
return $self;
......
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