From: Frédéric Buclin Date: Sun, 28 Apr 2013 11:36:51 +0000 (+0200) Subject: Bug 858909: When running checksetup.pl for the first time using Oracle as DB server... X-Git-Tag: bugzilla-4.5.1~168 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b897909468a6f303dc3feb91612fb5bcc3f1c37d;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 e9ee44f5ec..68aa3fa93b 100644 --- a/Bugzilla/DB/Oracle.pm +++ b/Bugzilla/DB/Oracle.pm @@ -60,7 +60,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,