rails/rails — pull request #13195 by acapilleri (2013-12-05 16:02:13+00:00)
Title: fix Mysql sum return integer instead of float

This PR fix a wrong conversion to integer in sum
calculation when the name of the table is included in
the fied of sum.

Before:

Account.sum("2.1 * accounts.credit_limit") => 667

After:

Account.sum("2.1 * accounts.credit_limit") => 667.8

Fixes #12937