diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2019-05-30 20:42:35 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2019-05-30 20:42:35 -0400 |
commit | 754e7f52cf64b72988bdf8211c603809b32c16de (patch) | |
tree | e925e74538d9d387f20f8abb3a0771b6f5be59b6 /lib/sqlalchemy/dialects/postgresql/pygresql.py | |
parent | df99e1ef5f334ce7f4c8118c3e0bdf2949f54de3 (diff) | |
download | sqlalchemy-754e7f52cf64b72988bdf8211c603809b32c16de.tar.gz |
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
Diffstat (limited to 'lib/sqlalchemy/dialects/postgresql/pygresql.py')
0 files changed, 0 insertions, 0 deletions