in reply to The Moose, dbh class attribute, mod_perl handler and a lost SQL connection
It look that your $dbh is being disconnected (which happens sometimes) and so when you try and call prepare it has no connection and since your SQLConnection class has no logic for handling or detecting this it dies. You might want to take a look at DBIx::Connector for handling your connections with, it is an extraction of the connection handling code from DBIx::Class.
|
|---|