diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2006-08-12 20:25:38 +0000 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2006-08-12 20:25:38 +0000 |
| commit | cf7e168345cd5724bf4f38cb6db85c9e2ca82463 (patch) | |
| tree | 93938a6b17906c1aa9c9d137b4f830258cfddc25 | |
| parent | cfa28641758d17b608ebb849d13533d1c36bf097 (diff) | |
| download | sqlalchemy-cf7e168345cd5724bf4f38cb6db85c9e2ca82463.tar.gz | |
fixed construction of order_by with distinct query
| -rw-r--r-- | lib/sqlalchemy/orm/query.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/orm/query.py b/lib/sqlalchemy/orm/query.py index 3b04575c1..1e9d40c75 100644 --- a/lib/sqlalchemy/orm/query.py +++ b/lib/sqlalchemy/orm/query.py @@ -364,7 +364,7 @@ class Query(object): # to use it in "order_by". insure they are in the column criterion (particularly oid). # TODO: this should be done at the SQL level not the mapper level if kwargs.get('distinct', False) and order_by: - statement.append_column(*util.to_list(order_by)) + [statement.append_column(c) for c in util.to_list(order_by)] # plugin point # give all the attached properties a chance to modify the query |
