]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 858909: When running checksetup.pl for the first time using Oracle as DB server...
authorFrédéric Buclin <LpSolit@gmail.com>
Sun, 28 Apr 2013 11:36:51 +0000 (13:36 +0200)
committerFrédéric Buclin <LpSolit@gmail.com>
Sun, 28 Apr 2013 11:36:51 +0000 (13:36 +0200)
r=dkl a=LpSolit

Bugzilla/DB/Oracle.pm

index e9ee44f5ecaa8e01f9dda2ab2747ec95b27581ce..68aa3fa93bcc1c4330a5bc0cd0ec96257ace4a81 100644 (file)
@@ -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,