rails/rails — pull request #17365 by mrnugget (2014-10-23 08:52:48+00:00)
Title: Support infinity in PostgreSQL date columns

This adds support for the special input string values `infinity` and `-infinity` stored in PostgreSQL date columns.

When reading from the database the PostgreSQL adapter now returns `Float::INFINITY` when the stored value equals `infinity` and `-Float::INFINITY` when it equals `-infinity`.

Until now we only had support for Infinity in `float` and `datetime` columns.

Please let me know if this change is okay or if I should add something. I tried to use the same code as in `OID::DateTime`.