diff options
author | Frédéric Buclin <LpSolit@gmail.com> | 2013-04-28 13:36:51 +0200 |
---|---|---|
committer | Frédéric Buclin <LpSolit@gmail.com> | 2013-04-28 13:36:51 +0200 |
commit | b897909468a6f303dc3feb91612fb5bcc3f1c37d (patch) | |
tree | 4ce1be7f7c56011ea6663adba39bc236dde6602e /Bugzilla/DB | |
parent | Bug 851591: Add a main-end hook into global/footer.html.tmpl to be able to di... (diff) | |
download | bugzilla-b897909468a6f303dc3feb91612fb5bcc3f1c37d.tar.gz bugzilla-b897909468a6f303dc3feb91612fb5bcc3f1c37d.tar.bz2 bugzilla-b897909468a6f303dc3feb91612fb5bcc3f1c37d.zip |
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 e9ee44f5e..68aa3fa93 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, |