From 58d9e6b25aa1640396ca62f967ebb12e7076789c Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" Date: Sun, 28 Apr 2013 11:47:55 +0000 Subject: [PATCH] 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 git-svn-id: svn://10.0.0.236/trunk@264838 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/webtools/bugzilla/.bzrrev | 2 +- mozilla/webtools/bugzilla/Bugzilla/DB/Oracle.pm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mozilla/webtools/bugzilla/.bzrrev b/mozilla/webtools/bugzilla/.bzrrev index cb4af6609b5..258640f8e2d 100644 --- a/mozilla/webtools/bugzilla/.bzrrev +++ b/mozilla/webtools/bugzilla/.bzrrev @@ -1 +1 @@ -8614 \ No newline at end of file +8615 \ No newline at end of file diff --git a/mozilla/webtools/bugzilla/Bugzilla/DB/Oracle.pm b/mozilla/webtools/bugzilla/Bugzilla/DB/Oracle.pm index e9ee44f5eca..68aa3fa93bc 100644 --- a/mozilla/webtools/bugzilla/Bugzilla/DB/Oracle.pm +++ b/mozilla/webtools/bugzilla/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,