From d30551a767398caf91954a42d69cc2f88a276e75 Mon Sep 17 00:00:00 2001 From: Frédéric Buclin Date: Sun, 28 Apr 2013 13:40:12 +0200 Subject: 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 --- Bugzilla/DB/Oracle.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Bugzilla/DB') diff --git a/Bugzilla/DB/Oracle.pm b/Bugzilla/DB/Oracle.pm index 622609f15..1427bcedd 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, -- cgit v1.2.3-24-g4f1b