summaryrefslogtreecommitdiff
path: root/rt/lib/RT/Handle.pm
diff options
context:
space:
mode:
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