[Jifty-commit] r1943 - in jifty/trunk: lib/Jifty

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Fri Sep 8 18:33:34 EDT 2006


Author: jesse
Date: Fri Sep  8 18:33:34 2006
New Revision: 1943

Modified:
   jifty/trunk/   (props changed)
   jifty/trunk/lib/Jifty/Handle.pm

Log:
 r27299 at pinglin:  jesse | 2006-09-08 23:33:03 +0100
 * My change just now oto Jifty::DBI unmasked a case where we were passing arguments to Jifty::DBI::Handle too liberally.


Modified: jifty/trunk/lib/Jifty/Handle.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Handle.pm	(original)
+++ jifty/trunk/lib/Jifty/Handle.pm	Fri Sep  8 18:33:34 2006
@@ -85,7 +85,8 @@
     my %db_config =  (%{Jifty->config->framework('Database')}, Database => $self->canonical_database_name);
 
     my %lc_db_config;
-    for (keys %db_config) {
+    # Skip the non-dsn keys, but not anything else
+    for (grep {!/^version|recordbaseclass$/i} keys %db_config) {
         $lc_db_config{lc($_)} = $db_config{$_};
     }
     $self->SUPER::connect( %lc_db_config , %args);


More information about the Jifty-commit mailing list