You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to sqlalchemy
Hi!
I've noticed that a very simple query has an ordering applied to it
even though I haven't asked for one. Is there a way to stop it doing
that?
the query:
Session.query(User).set_shard(shard).filter_by(uuid=uuid).all()
Thanks!
Bobby Impollonia
unread,
May 30, 2008, 12:27:27 PM5/30/08
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to sqlal...@googlegroups.com
You can add .order_by(None) to the query to remove the default ordering.
Michael Bayer
unread,
May 30, 2008, 3:16:44 PM5/30/08
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to sqlal...@googlegroups.com
order_by(None) on Query, order_by=None on mapper(), order_by=None on relation(), or upgrade to 0.5; in 0.5 all the default "order_by" stuff is removed.