Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Changeset [5fe6635e05a18b312c47fe6bbbaf88fd62e7703d] by Dov Murik

Revision 5fe6635e05a18b312c47fe6bbbaf88fd62e7703d, committed by Dov Murik · January 26th, 2009 @ 08:55 PM

Mysql#reconnect is set according to the 'reconnect' key in the connection spec.

The 'reconenct' boolean option is read from the connection specification and is used to set the reconnect attribute of Mysql. The default is false in order not to change existing application behaviour.

Also, reconnect is set AFTER real_connect is called, so its value sticks (the mysql gem sets reconnect to false inside real_connect).

Signed-off-by: Michael Koziarski michael@koziarski.com [#1797 state:committed] http://github.com/rails/rails/co...

2 changed files

  • M activerecord/lib/active_record/connection_adapters/mysql_adapter.rb
  • M activerecord/test/cases/connection_test_mysql.rb