[Jifty-commit] r2907 - in jifty/trunk: lib/Jifty/Script
jifty-commit at lists.jifty.org
jifty-commit at lists.jifty.org
Mon Mar 5 02:51:12 EST 2007
Author: alexmv
Date: Mon Mar 5 02:51:11 2007
New Revision: 2907
Modified:
jifty/trunk/ (props changed)
jifty/trunk/lib/Jifty/Script/Schema.pm
Log:
r17684 at zoq-fot-pik: chmrr | 2007-03-05 02:50:57 -0500
* Deal with subclassing epsilon better; should really be a class
method on the handle
Modified: jifty/trunk/lib/Jifty/Script/Schema.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Script/Schema.pm (original)
+++ jifty/trunk/lib/Jifty/Script/Schema.pm Mon Mar 5 02:51:11 2007
@@ -500,8 +500,8 @@
# Everything but the template1 database is assumed
my %connect_args;
- $connect_args{'database'} = 'template1' if ( $driver eq 'Pg' );
- $connect_args{'database'} = '' if ( $driver eq 'mysql' );
+ $connect_args{'database'} = 'template1' if ( $handle->isa("Jifty::DBI::Handle::Pg") );
+ $connect_args{'database'} = '' if ( $handle->isa("Jifty::DBI::Handle::mysql") );
$handle->connect(%connect_args);
return $handle;
}
More information about the Jifty-commit
mailing list