its not really provided right now, the same way saying query.filter(None) won't 
reset any existing WHERE criterion, or join(None) doesn't remove all joins.    
This issue has come up before.  How is order_by() different ?


On Jun 16, 2010, at 8:05 AM, Andi Albrecht wrote:

> Hi,
> 
> I'm a bit curious about how to unset an order_by in 0.6.
> 
> query.order_by(None) should do it, but in sqlalchemy/orm/query.py in
> _no_select_modifiers() the notset value for the _order_by attribute is
> False. In turn, the order_by() method doesn't seem to accept False.
> 
> What would be a proper way to unset an order_by? In my case the
> order_by is set when classes are mapped.
> 
> Best regards,
> 
> Andi
> 
> -- 
> 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.
> 

-- 
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