On Mon, 2009-02-02 at 17:12 +0300, Oleg Broytmann wrote:
> On Mon, Feb 02, 2009 at 03:22:05PM +0200, Iwan Vosloo wrote:
> > Article.select("(age(article.published_date)) < (article.running_time *
> > '1 day'::interval)")
> 
>    Try
> 
> from sqlobject.sqlbuilder import func, SQLConstant
> Article.select(func.age(Article.q.publishedDate) < Article.q.runningTime * 
> SQLConst("'1 day'::interval"))


Great, thanks Oleg, that works.

-i


------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
sqlobject-discuss mailing list
sqlobject-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss

Reply via email to