[Catalyst] Transactions with mysql - can't locate db_Main

Ross Crawford ross.crawford at gmail.com
Wed Jan 18 23:55:46 CET 2006


Thanks Perrin, that may well be the reason. I fiddled around a bit, and 
it appears changing:

	my $dbh = $class->db_Main;

to:

	my $dbh = $class::db_Main;

seems to work. I will continue testing to confirm this.

ROSCO

Perrin Harkins wrote:
> On Thu, 2006-01-19 at 09:39 +1100, Ross Crawford wrote:
> 
>>Hmmmm. Yes it does. I'd be interested in knowing the reason.
> 
> 
> I believe it's because Class::DBI::Loader (which Catalyst::Model::CDBI
> uses) calls set_db in each subclass rather than in the base class.
> 
> - Perrin
> 
> 
> _______________________________________________
> Catalyst mailing list
> Catalyst at lists.rawmode.org
> http://lists.rawmode.org/mailman/listinfo/catalyst
> 



More information about the Catalyst mailing list