]> 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:17 +0000 (11:44 -0400)
commit9eb35c6664094a8e2b7ca1a0794f3cfd65cd46cf
treea5f89a69ce746a586bbbed28731c81bad00a80a1
parente263825e3c5060bf4f47eed0e833c6660a31658e
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
doc/build/changelog/unreleased_20/12847.rst [new file with mode: 0644]
lib/sqlalchemy/dialects/postgresql/array.py
test/dialect/postgresql/test_types.py