summaryrefslogtreecommitdiffstats
path: root/Bugzilla/DB
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2008-11-07 07:07:48 +0100
committerlpsolit%gmail.com <>2008-11-07 07:07:48 +0100
commit4210d2935df7ca71df47b3a915fea804cb441b34 (patch)
tree3dfc8b3876eb9fd72e2a6a2a14c6acaba2bb8e98 /Bugzilla/DB
parenta119de4a2120b25146d824199b53ad2b08d7d398 (diff)
downloadbugzilla-4210d2935df7ca71df47b3a915fea804cb441b34.tar.gz
bugzilla-4210d2935df7ca71df47b3a915fea804cb441b34.tar.xz
Bug 463380: [Mysql] "Use of uninitialized value" when running checksetup.pl for the very first time - Patch by Frédéric Buclin <LpSolit@gmail.com> r/a=mkanat
Diffstat (limited to 'Bugzilla/DB')
-rw-r--r--Bugzilla/DB/Mysql.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/Bugzilla/DB/Mysql.pm b/Bugzilla/DB/Mysql.pm
index 601be102b..92263af9d 100644
--- a/Bugzilla/DB/Mysql.pm
+++ b/Bugzilla/DB/Mysql.pm
@@ -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;