ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> ruby-rails
ruby-rails
Re: [Rails] Re: Re: Re: Re: ActiveRecord 1.13.2 -> 1.14.0 breaks Postgre
by Jeroen Houben other posts by this author
Mar 31 2006 11:56PM messages near this date
[Rails] Re: Re: Re: Re: ActiveRecord 1.13.2 -> 1.14.0 breaks Postgre | Re: [Rails] Re: Re: Re: Re: ActiveRecord 1.13.2 -> 1.14.0 breaks Postgre
Joe wrote:
>  Jeroen Houben wrote:
> > Joe wrote:
> >>> One important thing to note is that you do not notice this behaviour in
> >>> development mode, so I only found out when I moved to production (on 
> >>> 1.0)
> >>>
> >>> Jeroen
> >> Nah, I never had this problem with 1.0 in production mode. The removal 
> >> of the default code is in the 1.1 changelog for Activerecord.
> > What kind of defaults were you using then, because having defaults with
> > pg functions in them for sure didn't work properly in 1.0 (at least for 
> > me)
> >
> > Jeroen
>  
>  I just had timestamp columns with defaults of current_timestamp or 
>  now(). The default was used fine in 1.0, but after switching to 1.1 they 
>  caused errors.

In my case, on 1.0, they would use *the same* timestamp value for each 
insert/update even if they were hours apart, because rails would cache 
those defaults somehow.

Jeroen
_______________________________________________
Rails mailing list
Rails@[...].org
http://lists.rubyonrails.org/mailman/listinfo/rails
Thread:
Pistos Christou
Jeroen Houben
Jeroen Houben
Pistos Christou
Jeroen Houben
Joe
Jeroen Houben
Joe
Jeroen Houben
Joe
Jeroen Houben
Joe
Jeroen Houben
Raphael Bauduin
Joe

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved