From fcda519452cf5e0cdbde7569ab32459b9f314f7a Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Thu, 10 Apr 2014 22:33:33 -0400 Subject: - Fixed regression introduced in 0.9 where new "ORDER BY " feature from :ticket:`1068` would not apply quoting rules to the label name as rendered in the ORDER BY. fix #3020, re: #1068 --- lib/sqlalchemy/sql/compiler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/sqlalchemy/sql/compiler.py') 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, -- cgit v1.2.1