]> 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:42:35 +0000 (20:42 -0400)
commit754e7f52cf64b72988bdf8211c603809b32c16de
treee925e74538d9d387f20f8abb3a0771b6f5be59b6
parentdf99e1ef5f334ce7f4c8118c3e0bdf2949f54de3
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
doc/build/changelog/unreleased_13/4701.rst [new file with mode: 0644]
lib/sqlalchemy/dialects/postgresql/base.py
test/dialect/postgresql/test_reflection.py