summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2018-07-13 12:58:21 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2018-07-13 18:56:22 -0400
commit2fdf26020878edcbaa7792a869b3d45b715cc05a (patch)
treecf2dcd1e6b7e1aa4461090f3924cfe2239362a4c /lib/sqlalchemy
parent2c44fc22a7e9a4ac69ed6ce9da5551eb2d7cc1a2 (diff)
downloadsqlalchemy-2fdf26020878edcbaa7792a869b3d45b715cc05a.tar.gz
Use exprs for bundle __clause_element__
Fixed bug in :class:`.Bundle` construct where placing two columns of the same name would be de-duplicated, when the :class:`.Bundle` were used as part of the rendered SQL, such as in the ORDER BY or GROUP BY of the statement. Change-Id: Ia528c9fbb399a6beb5ea7cdd3a8a83ad530f5831 Fixes: #4295
Diffstat (limited to 'lib/sqlalchemy')
-rw-r--r--lib/sqlalchemy/orm/query.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/orm/query.py b/lib/sqlalchemy/orm/query.py
index 98747c680..272fed3e2 100644
--- a/lib/sqlalchemy/orm/query.py
+++ b/lib/sqlalchemy/orm/query.py
@@ -3964,7 +3964,7 @@ class Bundle(InspectionAttr):
return cloned
def __clause_element__(self):
- return expression.ClauseList(group=False, *self.c)
+ return expression.ClauseList(group=False, *self.exprs)
@property
def clauses(self):