]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Pass desired array type from pg.array_agg to functions.array_agg
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 22 Aug 2018 15:13:54 +0000 (11:13 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 22 Aug 2018 15:15:00 +0000 (11:15 -0400)
commit202108b6550d2e89b85b617a3f76654562eba6ef
treea0cad4b7115122f7fd29d93ff4d3a3e8b630f0b8
parent08dd649e7e4048b8d8e723d5e00835b373e0b85c
Pass desired array type from pg.array_agg to functions.array_agg

Fixed the :func:`.postgresql.array_agg` function, which is a slightly
altered version of the usual :func:`.functions.array_agg` function, to also
accept an incoming "type" argument without forcing an ARRAY around it,
essentially the same thing that was fixed for the generic function in 1.1
in :ticket:`4107`.

Fixes: #4324
Change-Id: I399a29f59c945a217cdd22c65ff0325edea8ea65
(cherry picked from commit 52a3f5b7635583ae6feb084b1db654b9c65caec2)
doc/build/changelog/unreleased_12/4324.rst [new file with mode: 0644]
lib/sqlalchemy/dialects/postgresql/ext.py
lib/sqlalchemy/sql/functions.py
test/dialect/postgresql/test_compiler.py