summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/sql/compiler.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sqlalchemy/sql/compiler.py')
-rw-r--r--lib/sqlalchemy/sql/compiler.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/sqlalchemy/sql/compiler.py b/lib/sqlalchemy/sql/compiler.py
index 5333b1419..8499484f3 100644
--- a/lib/sqlalchemy/sql/compiler.py
+++ b/lib/sqlalchemy/sql/compiler.py
@@ -1329,6 +1329,7 @@ class SQLCompiler(Compiled):
name = (
self.preparer.quote(name)
if self.preparer._requires_quotes_illegal_chars(name)
+ or isinstance(name, elements.quoted_name)
else name
)
name = name + "%(expr)s"
@@ -1337,6 +1338,7 @@ class SQLCompiler(Compiled):
(
self.preparer.quote(tok)
if self.preparer._requires_quotes_illegal_chars(tok)
+ or isinstance(name, elements.quoted_name)
else tok
)
for tok in func.packagenames