This project is archived and is in readonly mode.

Changeset [e5c211c5eb6e8f1651130b7aa0a5291e5d184ab4] by Dov Murik

January 26th, 2009 @ 08:56 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...

Committed by Dov Murik

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

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>