On Mon, Aug 20, 2007 at 09:02:46PM +0200, Markus Gritsch wrote:
> > from sqlobject.sqlbuilder import Select, func
> > for row in conn.queryAll(conn.sqlrepr(
> >    Select(func.date(Entry.q.begin), distinct=True)
> > ))
> 
> Ok.  And is there a way to put the 'query' variable, which is of
> __class__ sqlobject.sqlbuilder.SQLOp, from my original code into the
> SQLBuilder version?

   Try

Select(func.date(Entry.q.begin), clause=query, distinct=True)

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

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
sqlobject-discuss mailing list
sqlobject-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss

Reply via email to