summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/sql.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2006-03-13 01:13:47 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2006-03-13 01:13:47 +0000
commita579e8f687833257757d53e772698f652e90472a (patch)
treef548c46d5383f111a77cc82230f8c9edc7cbf6aa /lib/sqlalchemy/sql.py
parent8690e2e3034396c19fcbd3fc68ea6fdb24f3ac28 (diff)
downloadsqlalchemy-a579e8f687833257757d53e772698f652e90472a.tar.gz
small tweak to select in order to fix [ticket:112]...the exported columns when doing select on a select() will be the column names, not the keys. this is with selects that have use_labels=False. which makes sense since using the "key" and not the name implies a label has to be used.
Diffstat (limited to 'lib/sqlalchemy/sql.py')
-rw-r--r--lib/sqlalchemy/sql.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/sql.py b/lib/sqlalchemy/sql.py
index 4eaf33e00..a6fe3e880 100644
--- a/lib/sqlalchemy/sql.py
+++ b/lib/sqlalchemy/sql.py
@@ -1272,7 +1272,7 @@ class Select(SelectBaseMixin, FromClause):
if self.use_labels:
return column._make_proxy(self, name=column._label)
else:
- return column._make_proxy(self, name=column.key)
+ return column._make_proxy(self, name=column.name)
def append_whereclause(self, whereclause):
self._append_condition('whereclause', whereclause)