]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Fix array_agg to accommodate ARRAY arguments
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 6 Oct 2017 15:14:29 +0000 (11:14 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 6 Oct 2017 15:29:09 +0000 (11:29 -0400)
commit4bb8397ae3a9d65bd18eb1d7c951bf5121ea280a
tree99ed437324d1ceaf1b6022216862c3eac5d15884
parent2c280791886756422a8103769cf131b0fe292ffe
Fix array_agg to accommodate ARRAY arguments

Fixed bug in :func:`.array_agg` function where passing an argument
that is already of type :class:`.ARRAY`, such as a Postgresql
:obj:`.postgresql.array` construct, would produce a ``ValueError``, due
to the function attempting to nest the arrays.

Change-Id: Ibe5f6275d90e4868e6ef8a733de05acd44c05d78
Fixes: #4107
doc/build/changelog/unreleased_11/4107.rst [new file with mode: 0644]
lib/sqlalchemy/sql/functions.py
test/sql/test_functions.py