From dfd88ef1d9ec484616e226e1a2de8dec925a4204 Mon Sep 17 00:00:00 2001 From: Joshua Morris Date: Sun, 4 Jun 2023 19:15:28 +1000 Subject: [PATCH] Remove `sep` argument from `string_agg` As it is always the last argument, and document this --- lib/sqlalchemy/sql/functions.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/sqlalchemy/sql/functions.py b/lib/sqlalchemy/sql/functions.py index 5978ec5ade..1ca0a0468c 100644 --- a/lib/sqlalchemy/sql/functions.py +++ b/lib/sqlalchemy/sql/functions.py @@ -1807,12 +1807,13 @@ class string_agg(GenericFunction[_T]): This function will concatenate non-null values into a string and separate the values by a delimeter. + e.g. Example usage with delimeter '.' as the last argument + + stmt = select(func.string_agg(table.c.str_col, ".")) + The return type of this function is :class:`.String`. """ type = sqltypes.String() _has_args = True inherit_cache = True - - def __init__(self, sep=",", *args, **kwargs): - super().__init__(sep, *args, **kwargs) -- 2.47.3