[Jifty-commit] r5017 - in Jifty-DBI/branches/tisql: lib/Jifty/DBI

Jifty commits jifty-commit at lists.jifty.org
Tue Feb 5 21:16:08 EST 2008


Author: ruz
Date: Tue Feb  5 21:16:08 2008
New Revision: 5017

Modified:
   Jifty-DBI/branches/tisql/   (props changed)
   Jifty-DBI/branches/tisql/lib/Jifty/DBI/Handle.pm

Log:
 r4570 at cubic-pc (orig r4569):  jasonmay | 2007-11-29 21:55:16 +0300
 User and password values are excluded from the DSN in a more proper fashion
 


Modified: Jifty-DBI/branches/tisql/lib/Jifty/DBI/Handle.pm
==============================================================================
--- Jifty-DBI/branches/tisql/lib/Jifty/DBI/Handle.pm	(original)
+++ Jifty-DBI/branches/tisql/lib/Jifty/DBI/Handle.pm	Tue Feb  5 21:16:08 2008
@@ -194,12 +194,12 @@
     my $driver = delete $args{'driver'};
     $args{'dbname'} ||= delete $args{'database'};
 
-	my %exclusions = map { $_ => delete $args{$_} } qw/user password/;
+    delete $args{'user'};
+    delete $args{'password'};
 
     $self->{'dsn'} = "dbi:$driver:"
         . CORE::join( ';',
         map { $_ . "=" . $args{$_} } grep { defined $args{$_} } keys %args );
-	%args = (%args, %exclusions);
 }
 
 =head2 dsn


More information about the Jifty-commit mailing list