From: Frédéric Buclin Date: Sun, 28 Apr 2013 11:40:12 +0000 (+0200) Subject: Bug 858909: When running checksetup.pl for the first time using Oracle as DB server... X-Git-Tag: bugzilla-4.2.6~7 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d30551a767398caf91954a42d69cc2f88a276e75;p=thirdparty%2Fbugzilla.git Bug 858909: When running checksetup.pl for the first time using Oracle as DB server, you get an "uninitialized value" warning r=dkl a=LpSolit --- diff --git a/Bugzilla/DB/Oracle.pm b/Bugzilla/DB/Oracle.pm index 622609f159..1427bcedd7 100644 --- a/Bugzilla/DB/Oracle.pm +++ b/Bugzilla/DB/Oracle.pm @@ -74,7 +74,7 @@ sub new { my $dsn = "dbi:Oracle:host=$host;sid=$dbname"; $dsn .= ";port=$port" if $port; my $attrs = { FetchHashKeyName => 'NAME_lc', - LongReadLen => max(Bugzilla->params->{'maxattachmentsize'}, + LongReadLen => max(Bugzilla->params->{'maxattachmentsize'} || 0, MIN_LONG_READ_LEN) * 1024, }; my $self = $class->db_new({ dsn => $dsn, user => $user,