On Jun 2, 12:37 pm, Michael Bayer <[EMAIL PROTECTED]> wrote:
> I think the only way this would be possible in ORM for the time being  
> is query.from_statement(<statement>), where <statement> is a select()  
> construct or a full text string.  the solution for select() /query()  
> would be adding arguments to (select()/query()).distinct().

Thanks, the use of "from_statement" is what I suspected I'd need to
do, but I figured I'd double check first.

For what it's worth it would be nice for the PostgreSQL adapter to
support something like:

  query().distinct([...])

where the array/list were a list of columns for the DISTINCT ON.

Thanks for the help.

Jeff.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to