On Wed, Mar 14, 2007 at 04:58:50PM -0400, Fred C wrote:
> I have try that before and I got this error
> 
> AssertionError: Strings in clauses are expected to be column  
> identifiers.  I got: 'rate / (1+ EXTRACT(HOUR FROM AGE 
> (CURRENT_TIMESTAMP, updated)))'

   Try this:

from sqlobject.sqlbuilder import SQLConstant
items = Item.select(orderBy=SQLConstant("rate / (1+ EXTRACT(HOUR FROM 
AGE(CURRENT_TIMESTAMP, updated))))")

Oleg.
-- 
     Oleg Broytmann            http://phd.pp.ru/            [EMAIL PROTECTED]
           Programmers don't die, they just GOSUB without RETURN.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
sqlobject-discuss mailing list
sqlobject-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss

Reply via email to