[Catalyst] Initial connection pool issue with CDBI and MySQL

Dylan Vanderhoof DylanV at semaphore.com
Sat Jan 28 21:42:04 CET 2006


Misunderstood what you meant.

Anyways, that did the trick.  Thanks.

-Dylan

-----Original Message-----
From: Matt S Trout [mailto:dbix-class at trout.me.uk]
Sent: Saturday, January 28, 2006 12:43 PM
To: The elegant MVC web framework
Subject: Re: [Catalyst] Initial connection pool issue with CDBI and
MySQL


> sub new {
>   my $self = shift;
>   $self->NEXT::new(@_);
>   Some::CDBI::Class->db_Main->disconnect;
> }
> 
> in your Model::CDBI to disconnect the connection at the end of the
> component's setup process.

See where it says Some::CDBI::Class instead of Model::CDBI?

I meant it. Pick one of your table classes and call ->db_Main on that.




More information about the Catalyst mailing list