[Dbix-class] Class::Storage::DBI, connect_info/on_connect_do

Adam Bartosik adam.bartosik at hurra.com
Wed Jun 20 13:21:39 GMT 2007


> I read that DBD::MySQL has an internal auto-reconnect mechanism. Maybe DBIC 
> doesn't know anything about the reconnect?

It can be true - I tried to catch calls to dbh(), connected() in 
Storage/DBI.pm but there is no step in after mysql restart.

I use this feature to set names names for connection, it is fast query 
and I can do it with every request, but it is just workaround.

Maybe it need some checking with connection id or smth like this?

-- 
Adam.Bartosik at hurra.com  http://www.hurra-communications.com/
$ o m e    t e a m  .  d e v e l o p e r
Hurra Communications, Krakow/Stuttgart/London/Paris/Madrid



More information about the Dbix-class mailing list