On Jun 11, 2007, at 12:14 PM, Glauco wrote:
> my problem is exactly this... i don't use aliases, and the example
> is a qru constructed by SA.
you can only order by tables that you have added to the query
explicitly or via join(). you cant order by columns that are added
by eager loading.
i.e.
Operatore.join('somerelation').order_by(relatedtable.c.name).list()
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---