This project is archived and is in readonly mode.
Changeset [e5c211c5eb6e8f1651130b7aa0a5291e5d184ab4] by Dov Murik
Revision e5c211c5eb6e8f1651130b7aa0a5291e5d184ab4,
committed 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...
2 changed files
-
M
activerecord/lib/active_record/connection_adapters/mysql_adapter.rb -
M
activerecord/test/cases/connection_test_mysql.rb