summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/sql/compiler.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2015-03-23 12:33:48 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2015-03-23 12:33:48 -0400
commit04545727d4117db51786189e591b1777bde1a40b (patch)
tree16aa1a338c6529096db92d0d1efec1f057a28088 /lib/sqlalchemy/sql/compiler.py
parentdb853306c40437a8ad3dc9f510865820a941c3b5 (diff)
downloadsqlalchemy-04545727d4117db51786189e591b1777bde1a40b.tar.gz
- Fixed bug in new "label resolution" feature of :ticket:`2992` where
a label that was anonymous, then labeled again with a name, would fail to be locatable via a textual label. This situation occurs naturally when a mapped :func:`.column_property` is given an explicit label in a query. fixes #3340
Diffstat (limited to 'lib/sqlalchemy/sql/compiler.py')
-rw-r--r--lib/sqlalchemy/sql/compiler.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/sqlalchemy/sql/compiler.py b/lib/sqlalchemy/sql/compiler.py
index 8e709a474..755193552 100644
--- a/lib/sqlalchemy/sql/compiler.py
+++ b/lib/sqlalchemy/sql/compiler.py
@@ -560,7 +560,6 @@ class SQLCompiler(Compiled):
selectable = self.stack[-1]['selectable']
with_cols, only_froms = selectable._label_resolve_dict
-
try:
if within_columns_clause:
col = only_froms[element.element]