On 8/9/06, Tim Keefer <[EMAIL PROTECTED]> wrote:
I'm not sure why you're usage broke. Could you be more explicit? What version did it work in? What version broke you? What's the exact subref you're passing to connect, and what else does it interact with (what does the code for get_dbh and store_dbh do, exactly)?
Aside from all of that, what are you really trying to accomplish? The coderef form of input to connect_info was designed for certain very unusual usages that can't be handled any other (saner) way.
-- Brandon
Anyone have some insight as to why I'm unable to successfully cache the dbh?
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
I'm not sure why you're usage broke. Could you be more explicit? What version did it work in? What version broke you? What's the exact subref you're passing to connect, and what else does it interact with (what does the code for get_dbh and store_dbh do, exactly)?
Aside from all of that, what are you really trying to accomplish? The coderef form of input to connect_info was designed for certain very unusual usages that can't be handled any other (saner) way.
-- Brandon
_______________________________________________ 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]/
