summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/sql/compiler.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2008-02-14 18:22:47 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2008-02-14 18:22:47 +0000
commit84485fb7bbc31ecc20176c088af671b2c27311bc (patch)
tree7cbfaf85175ca0e318d6f5f47382f540a6317af4 /lib/sqlalchemy/sql/compiler.py
parenteddae08fdfbae0f43c7355896604c455f576ca7e (diff)
downloadsqlalchemy-84485fb7bbc31ecc20176c088af671b2c27311bc.tar.gz
- fixed bug in result proxy where anonymously generated
column labels would not be accessible using their straight string name
Diffstat (limited to 'lib/sqlalchemy/sql/compiler.py')
-rw-r--r--lib/sqlalchemy/sql/compiler.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/sql/compiler.py b/lib/sqlalchemy/sql/compiler.py
index e87d3d2fb..3f32778d6 100644
--- a/lib/sqlalchemy/sql/compiler.py
+++ b/lib/sqlalchemy/sql/compiler.py
@@ -236,7 +236,7 @@ class DefaultCompiler(engine.Compiled):
labelname = self._truncated_identifier("colident", label.name)
if result_map is not None:
- result_map[labelname.lower()] = (label.name, (label, label.obj), label.obj.type)
+ result_map[labelname.lower()] = (label.name, (label, label.obj, labelname), label.obj.type)
return " ".join([self.process(label.obj), self.operator_string(operators.as_), self.preparer.format_label(label, labelname)])