diff options
author | lpsolit%gmail.com <> | 2008-11-07 06:07:48 +0000 |
---|---|---|
committer | lpsolit%gmail.com <> | 2008-11-07 06:07:48 +0000 |
commit | 4210d2935df7ca71df47b3a915fea804cb441b34 (patch) | |
tree | 3dfc8b3876eb9fd72e2a6a2a14c6acaba2bb8e98 /Bugzilla | |
parent | a119de4a2120b25146d824199b53ad2b08d7d398 (diff) | |
download | bugs-4210d2935df7ca71df47b3a915fea804cb441b34.tar bugs-4210d2935df7ca71df47b3a915fea804cb441b34.tar.gz bugs-4210d2935df7ca71df47b3a915fea804cb441b34.tar.bz2 bugs-4210d2935df7ca71df47b3a915fea804cb441b34.tar.xz bugs-4210d2935df7ca71df47b3a915fea804cb441b34.zip |
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')
-rw-r--r-- | Bugzilla/DB/Mysql.pm | 4 |
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; |