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

Tim Bunce Tim.Bunce at pobox.com
Fri Jun 22 09:18:58 GMT 2007


On Thu, Jun 21, 2007 at 05:56:57PM -0400, John Goulah wrote:
>    On 6/21/07, Adam Bartosik <[1]adam.bartosik at hurra.com> wrote:
> 
>      > I would recommend for now explicitly setting "mysql_auto_reconnect =>
>      > 0" in your connect_info options hashref and seeing if this clears up
>      > your problem.
> 
>      Yes, setting
>      mysql_auto_reconnect => 0
>      disables internal DBD handling of auto-reconnect and on_connect_do SQLs
>      works.
> 
>    I tried this setting and actually it prevented me from connecting at all.  I tried it out since I plan
>    to run under mod_perl.   This is more of an FYI thing, but if anyone has ideas on why this would happen
>    I'd love to hear it-

It's hard to help without seeing the error message and, ideally, a small test case.

Tim.

>    Thanks,
>    John
> 
> References
> 
>    Visible links
>    1. mailto:adam.bartosik at hurra.com

> _______________________________________________
> 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/dbix-class@lists.rawmode.org/



More information about the Dbix-class mailing list