def test_connection_has_mysql_reconnect_property
@connection = ActiveRecord::Base.connection
mysql_connection = @connection.instance_variable_get
(:@connection)
assert mysql_connection.reconnect
end
This test fails.
Send us a patch with test for this one, nice find!
I think we should probably push reconnect into an option in
database.yml so users can make their own decisions. In my case the
character_set values are set in my.cnf so those queries don't actually
change anything for me.
A patch to fix this up and test that the value is actually set would
be greatly appreciated. Failing that, a lighthouse ticket assigned to
jeremy would be a good start.
Thanks again for spending the time to look into this.
--
Cheers
Koz
Yeah, great catch. This totally bit me on some daemons in the past
when the mysql connection died after several days...
-- Chad
...
>
> I think we should probably push reconnect into an option in
> database.yml so users can make their own decisions. In my case the
> character_set values are set in my.cnf so those queries don't actually
> change anything for me.
>
> A patch to fix this up and test that the value is actually set would
> be greatly appreciated. Failing that, a lighthouse ticket assigned to
> jeremy would be a good start.
>
Sounds good.
I will send a patch later today. Should I also open a lighthouse
ticket, or just post the patch here?
--
dubek.
Open a lighthouse ticket as well so we don't lose track of it. Feel
free to assign it straight to me.
--
Cheers
Koz