summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/sql
diff options
context:
space:
mode:
authormike bayer <mike_mp@zzzcomputing.com>2021-03-19 12:23:48 +0000
committerGerrit Code Review <gerrit@ci3.zzzcomputing.com>2021-03-19 12:23:48 +0000
commit37ef5f38523329f3e881c4f70d38d5589510af9f (patch)
treea667d03848c6652ea2f461a567984b30b49fe71d /lib/sqlalchemy/sql
parentaabb899ea5adb437b7a9ee45edf2d492ae2a5980 (diff)
parente67d1b79c544c14f375dff90b5d8af5b472c053e (diff)
downloadsqlalchemy-37ef5f38523329f3e881c4f70d38d5589510af9f.tar.gz
Merge "Deannoate functions before matching .__class__"
Diffstat (limited to 'lib/sqlalchemy/sql')
-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 0ea251fb4..276209103 100644
--- a/lib/sqlalchemy/sql/compiler.py
+++ b/lib/sqlalchemy/sql/compiler.py
@@ -1720,7 +1720,7 @@ class SQLCompiler(Compiled):
if disp:
text = disp(func, **kwargs)
else:
- name = FUNCTIONS.get(func.__class__, None)
+ name = FUNCTIONS.get(func._deannotate().__class__, None)
if name:
if func._has_args:
name += "%(expr)s"