.where() is OK.

On 6/6/07, svilen <[EMAIL PROTECTED]> wrote:
>  q2 = q1.order_by(None)    #used sometimes e.g. for count

This would be useful.  If a second .order_by can replace the ordering
(as opposed to appending to it), I don't see why it would be difficult
to delete it.  .order_by shouldn't add another join condition, and
even if it did and that can't be deleted, so what?  If the use wanted
an absolutely clean query, they should have constructed it cleanly in
the first place.

However, I like the way Query.count() ignores the order_by.    This
allows my functions to return a Query, and the caller can call
.list(), .count(), selectone(), or another aggregate method as they
wish, and it does the right thing.

I'm concerned that we're building an elaborate API that is kinda like
Query but not identical.

-- 
Mike Orr <[EMAIL PROTECTED]>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalchemy@googlegroups.com
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