summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/sql/functions.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2021-03-19 14:52:59 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2021-03-19 14:52:59 -0400
commit028e5e90331ff3d12ad3f241e63ccef56a8fa017 (patch)
treea0b2de23808b59ed258c863c87ff504bdc6296b4 /lib/sqlalchemy/sql/functions.py
parentad4ce4de3f617ae41fd15556d6e749689a501a94 (diff)
downloadsqlalchemy-028e5e90331ff3d12ad3f241e63ccef56a8fa017.tar.gz
Use tuple for function package names
Fixed issue where using a ``func`` that includes dotted packagenames would fail to be cacheable by the SQL caching system due to a Python list of names that needed to be a tuple. Fixes: #6101 Change-Id: I1d4bb5bf230b83596c59b6a04aa498f18ecd9613
Diffstat (limited to 'lib/sqlalchemy/sql/functions.py')
-rw-r--r--lib/sqlalchemy/sql/functions.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/sql/functions.py b/lib/sqlalchemy/sql/functions.py
index 40af73d7a..d71926a1f 100644
--- a/lib/sqlalchemy/sql/functions.py
+++ b/lib/sqlalchemy/sql/functions.py
@@ -790,7 +790,7 @@ class _FunctionGenerator(object):
return func(*c, **o)
return Function(
- self.__names[-1], packagenames=self.__names[0:-1], *c, **o
+ self.__names[-1], packagenames=tuple(self.__names[0:-1]), *c, **o
)