summaryrefslogtreecommitdiffstats
path: root/Bugzilla/DB
diff options
context:
space:
mode:
authorDave Lawrence <dlawrence@mozilla.com>2013-04-30 23:58:22 +0200
committerDave Lawrence <dlawrence@mozilla.com>2013-04-30 23:58:22 +0200
commit617e59c29d0987ab03dc59db4f97df36dc29b58f (patch)
tree4a6542c913983060be9b225d0ed1510c87aba874 /Bugzilla/DB
parent9d03ba42c45d0bff8ca490df80e431de23b2e308 (diff)
parent23a53530d7432b6689efdcb4cc79ecc304b082e0 (diff)
downloadbugzilla-617e59c29d0987ab03dc59db4f97df36dc29b58f.tar.gz
bugzilla-617e59c29d0987ab03dc59db4f97df36dc29b58f.tar.xz
merged with bugzilla/4.2
Diffstat (limited to 'Bugzilla/DB')
-rw-r--r--Bugzilla/DB/Oracle.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/Bugzilla/DB/Oracle.pm b/Bugzilla/DB/Oracle.pm
index 644276898..20eb0e550 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,