rails/rails — pull request #3713 by kf8a (2011-11-21 18:21:48+00:00)
Title: postgresql adapter should quote not a number and infinity correctly for float columns

a fix to make the postgresql adapter quote NaN and Infinity in float columns.

P.S. I don't know what the special case with the :datetime column is about, but i've left it in as the first condition, so that it would get triggered before it checks for just infinity? or nan?