Re: Infinity dates in RoR was How to handle bogus nulls from ActiveRecord

From: Craig Ringer <craig(at)postnewspapers(dot)com(dot)au>
To: "James B(dot) Byrne" <byrnejb(at)harte-lyne(dot)ca>
Cc: "Dickson S(dot) Guedes" <listas(at)guedesoft(dot)net>, Eric Hu <eric(at)lemurheavy(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: Infinity dates in RoR was How to handle bogus nulls from ActiveRecord
Date: 2011-05-18 00:47:58
Message-ID: 4DD3173E.6010004@postnewspapers.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 18/05/2011 4:02 AM, James B. Byrne wrote:
>
> On Fri, May 13, 2011 13:04, James B. Byrne wrote:
>>
>> I have opened an issue for this with the ActiveRecord folks.
>>
>> https://github.com/rails/rails/issues/544
>>
>
> This has been addressed by the AR team and is committed to master.
> +-Infinity support for dates is slated for general release with
> RoR-3.0.8.

... now if only Java would support infinite dates, too. Alas, unlike
RoR, I doubt there'll be a quick "we've fixed this, grab the next point
release" post for Java.

Not even the 3rd party JodaTime date/time library supports infinite
intervals, the +infinity date, etc, so I have to represent unbounded
intervals with some distant future date, or use null. Neither option is
very palatable.

--
Craig Ringer

Tech-related writing at http://soapyfrogs.blogspot.com/

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Craig Ringer 2011-05-18 00:52:07 Re: re-install postgres/postGIS without Loosing data??
Previous Message G. P. 2011-05-17 23:13:28 Re: re-install postgres/postGIS without Loosing data??