]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
interpret NULL in PG enum array values
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 5 Sep 2025 13:29:34 +0000 (09:29 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 5 Sep 2025 15:44:31 +0000 (11:44 -0400)
commit547f5f8b43542b7da97e4b43ac759ba1067c1ce9
treeab5837f110d81166a88fd11c07e3f0e2e8e7caff
parenteebd3019bd28a2f2cd4019ea21383ab54fa9feae
interpret NULL in PG enum array values

Fixed issue where selecting an enum array column containing NULL values
would fail to parse properly in the PostgreSQL dialect. The
:func:`._split_enum_values` function now correctly handles NULL entries by
converting them to Python ``None`` values.

Fixes: #12847
Change-Id: I39d10bc1be6b458da7e5d3f4b740f8faafd0adc5
(cherry picked from commit 9eb35c6664094a8e2b7ca1a0794f3cfd65cd46cf)
doc/build/changelog/unreleased_20/12847.rst [new file with mode: 0644]
lib/sqlalchemy/dialects/postgresql/array.py
test/dialect/postgresql/test_types.py