Re: How to handle bogus nulls from ActiveRecord - Mailing list pgsql-general

From James B. Byrne
Subject Re: How to handle bogus nulls from ActiveRecord
Date
Msg-id 50499.216.185.71.25.1305306262.squirrel@webmail.harte-lyne.ca
Whole thread Raw
In response to Re: How to handle bogus nulls from ActiveRecord  ("Dickson S. Guedes" <listas@guedesoft.net>)
Responses Infinity dates in RoR was How to handle bogus nulls from ActiveRecord  ("James B. Byrne" <byrnejb@harte-lyne.ca>)
List pgsql-general
On Fri, May 13, 2011 11:50, Dickson S. Guedes wrote:

>
> Well, fetching from database it came nil and when saved into, it was
> trying to save a serialized object. From postgresql_adapter.rb [1]
> you
> can see that it returns the correct internal type based when field
> type is datetime, but i can't see the same thing for 'date', i
> suppose
> that it going [2] to 'super' [3], so I suppose that this method [4]
> should be override in 'postgresql_adapter.rb'.
>

I have opened an issue for this with the ActiveRecord folks.

https://github.com/rails/rails/issues/544

--
***          E-Mail is NOT a SECURE channel          ***
James B. Byrne                mailto:ByrneJB@Harte-Lyne.ca
Harte & Lyne Limited          http://www.harte-lyne.ca
9 Brockley Drive              vox: +1 905 561 1241
Hamilton, Ontario             fax: +1 905 561 0757
Canada  L8E 3C3


pgsql-general by date:

Previous
From: Derrick Rice
Date:
Subject: Migrating to a WAL-shipped replication cluster
Next
From: "Bob Pawley"
Date:
Subject: Re: Postgredac Dump