[Rt-commit] rt branch, master, updated. rt-3.9.7-1216-geab2ec7

Ruslan Zakirov ruz at bestpractical.com
Tue Jan 11 02:38:31 EST 2011


The branch, master has been updated
       via  eab2ec7b173c2d67020d8f8049d5513ce2572de8 (commit)
      from  3aa6adad499bd4da6a433a167dcc341bef5c2249 (commit)

Summary of changes:
 lib/RT/Handle.pm |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)

- Log -----------------------------------------------------------------
commit eab2ec7b173c2d67020d8f8049d5513ce2572de8
Author: Ruslan Zakirov <ruz at bestpractical.com>
Date:   Tue Jan 11 10:36:55 2011 +0300

    we work with one DB type at a time, use elsif

diff --git a/lib/RT/Handle.pm b/lib/RT/Handle.pm
index b3847be..5392243 100644
--- a/lib/RT/Handle.pm
+++ b/lib/RT/Handle.pm
@@ -120,16 +120,12 @@ sub Connect {
         ($version) = $version =~ /^(\d+\.\d+)/;
         $self->dbh->do("SET NAMES 'utf8'") if $version >= 4.1;
     }
-
-
-    if ( $db_type eq 'Pg' ) {
+    elsif ( $db_type eq 'Pg' ) {
         my $version = $self->DatabaseVersion;
         ($version) = $version =~ /^(\d+\.\d+)/;
         $self->dbh->do("SET bytea_output = 'escape'") if $version >= 9.0;
     }
 
-
-
     $self->dbh->{'LongReadLen'} = RT->Config->Get('MaxAttachmentSize');
 }
 

-----------------------------------------------------------------------


More information about the Rt-commit mailing list