summaryrefslogtreecommitdiff
path: root/rt/lib/RT/Handle.pm
diff options
context:
space:
mode:
authorivan <ivan>2004-11-11 12:13:50 +0000
committerivan <ivan>2004-11-11 12:13:50 +0000
commitc582e92888b4a5553e1b4e5214cf35217e4a0cf0 (patch)
tree3fe7cd7bf22bd356b478f0de0dd8f0b140fcee23 /rt/lib/RT/Handle.pm
parent289340780927b5bac2c7604d7317c3063c6dd8cc (diff)
import rt 3.0.12
Diffstat (limited to 'rt/lib/RT/Handle.pm')
-rw-r--r--rt/lib/RT/Handle.pm15
1 files changed, 7 insertions, 8 deletions
diff --git a/rt/lib/RT/Handle.pm b/rt/lib/RT/Handle.pm
index 9b611b903..e60bbd924 100644
--- a/rt/lib/RT/Handle.pm
+++ b/rt/lib/RT/Handle.pm
@@ -58,18 +58,17 @@ Takes nothing. Calls SUPER::Connect with the needed args
=cut
sub Connect {
-my $self=shift;
-
+ my $self = shift;
- if ($RT::DatabaseType eq 'Oracle') {
+ if ( $RT::DatabaseType eq 'Oracle' ) {
$ENV{'NLS_LANG'} = ".UTF8";
}
- $self->SUPER::Connect(
- User => $RT::DatabaseUser,
- Password => $RT::DatabasePassword,
- );
-
+ $self->SUPER::Connect( User => $RT::DatabaseUser,
+ Password => $RT::DatabasePassword, );
+
+ $self->dbh->{LongReadLen} = $RT::MaxAttachmentSize;
+
}
=item BuildDSN