diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2014-04-10 22:33:33 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2014-04-10 22:33:33 -0400 |
commit | fcda519452cf5e0cdbde7569ab32459b9f314f7a (patch) | |
tree | 4c89b5b4ca328740a83e09b5f2e2200dfc8919e8 /lib/sqlalchemy/sql/compiler.py | |
parent | 9f74861d6d2962cb255887c78d5d0f4cb8891cfa (diff) | |
download | sqlalchemy-fcda519452cf5e0cdbde7569ab32459b9f314f7a.tar.gz |
- Fixed regression introduced in 0.9 where new "ORDER BY <labelname>"
feature from :ticket:`1068` would not apply quoting rules to the
label name as rendered in the ORDER BY.
fix #3020, re: #1068
Diffstat (limited to 'lib/sqlalchemy/sql/compiler.py')
-rw-r--r-- | lib/sqlalchemy/sql/compiler.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/sql/compiler.py b/lib/sqlalchemy/sql/compiler.py index af40b2537..31193ab17 100644 --- a/lib/sqlalchemy/sql/compiler.py +++ b/lib/sqlalchemy/sql/compiler.py @@ -521,7 +521,7 @@ class SQLCompiler(Compiled): OPERATORS[operators.as_] + \ self.preparer.format_label(label, labelname) elif render_label_only: - return labelname + return self.preparer.format_label(label, labelname) else: return label.element._compiler_dispatch(self, within_columns_clause=False, |