]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
PostgreSQL enum with no elements returns NULL for the "label", skip this
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 31 May 2019 00:42:35 +0000 (20:42 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 31 May 2019 00:43:49 +0000 (20:43 -0400)
commit97f2abb545f42b90c2f045bcc28b7e74dbdb5567
treebbc09751f2c62f98da9d1976b476c00d5bb5f510
parent838dbdb27394c43268a812c909769030292cf9f3
PostgreSQL enum with no elements returns NULL for the "label", skip this

Fixed bug where PostgreSQL dialect could not correctly reflect an ENUM
datatype that has no members, returning a list with ``None`` for the
``get_enums()`` call and raising a TypeError when reflecting a column which
has such a datatype.   The inspection now returns an empty list.

Fixes: #4701
Change-Id: I202bab19728862cbc64deae211d5ba6a103b8317
(cherry picked from commit 754e7f52cf64b72988bdf8211c603809b32c16de)
doc/build/changelog/unreleased_13/4701.rst [new file with mode: 0644]
lib/sqlalchemy/dialects/postgresql/base.py
test/dialect/postgresql/test_reflection.py