When calling the connect method I pass it a code reference like so:
my $dbh = get_dbh();
if ( ! $dbh ) {
$dbh = DBI->connect_cached ....
store_dbh( $dbh );
}
return $dbh;
This used to work with the older version of DBIx::Class.
Thanks,
Tim
_______________________________________________ List: http://lists.rawmode.org/cgi-bin/mailman/listinfo/dbix-class Wiki: http://dbix-class.shadowcatsystems.co.uk/ IRC: irc.perl.org#dbix-class SVN: http://dev.catalyst.perl.org/repos/bast/trunk/DBIx-Class/ Searchable Archive: http://www.mail-archive.com/[email protected]/
