]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Remove `sep` argument from `string_agg`
authorJoshua Morris <joshuajohnmorris@gmail.com>
Sun, 4 Jun 2023 09:15:28 +0000 (19:15 +1000)
committerJoshua Morris <joshua.morris@deswik.com>
Mon, 10 Jul 2023 22:48:07 +0000 (08:48 +1000)
As it is always the last argument, and document this

lib/sqlalchemy/sql/functions.py

index 5978ec5ade18d95e31494f0a6fb17f970bf2f1dc..1ca0a0468c4f8a75974228f97e197b0e490c6f68 100644 (file)
@@ -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)