[sqlalchemy] bug? order_by + get(some_id) results in InvalidRequestError

2008-09-06 Thread Kyle Schaffrick
On Thu, 4 Sep 2008 18:54:27 -0400 Michael Bayer [EMAIL PROTECTED] wrote: as usual, since this one might turn out to be pretty controversial, I welcome the list to comment on this one. The order_by().get() idea does fall in the category of nonsensical as opposed to ambiguous , perhaps

[sqlalchemy] bug? order_by + get(some_id) results in InvalidRequestError

2008-09-04 Thread Jon
I'm using 0.4.6 but I thought I'd give 0.5b3 a try. An existing (working) query failed with: Query.__no_criterion() being called on a Query with existing criterion. I tracked that down to using order_by when building the query. An example is below: q = dbsess.query(Obj) q =