diff options
author | Frédéric Buclin <LpSolit@gmail.com> | 2013-04-28 13:40:12 +0200 |
---|---|---|
committer | Frédéric Buclin <LpSolit@gmail.com> | 2013-04-28 13:40:12 +0200 |
commit | d30551a767398caf91954a42d69cc2f88a276e75 (patch) | |
tree | d7cab63a0dc76d07176c8cca3ab785525df3a3e5 /Bugzilla/DB | |
parent | 2aecaaf29af1866367a362bbd57c6b5258d6440e (diff) | |
download | bugzilla-d30551a767398caf91954a42d69cc2f88a276e75.tar.gz bugzilla-d30551a767398caf91954a42d69cc2f88a276e75.tar.xz |
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
Diffstat (limited to 'Bugzilla/DB')
-rw-r--r-- | Bugzilla/DB/Oracle.pm | 2 |
1 files changed, 1 insertions, 1 deletions
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, |