]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Implement DDL visitor for PG ENUM with schema translate support
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 19 Aug 2020 02:53:09 +0000 (22:53 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 19 Aug 2020 14:43:38 +0000 (10:43 -0400)
commitd1005e130558b33fd455be6d994e8e863799a318
tree4e6b3acdf0476ddcdb61afbce782c064afd9a12a
parent0901190bb440580f0664fe3f6310173762b908e0
Implement DDL visitor for PG ENUM with schema translate support

Fixed issue where the :class:`_postgresql.ENUM` type would not consult the
schema translate map when emitting a CREATE TYPE or DROP TYPE during the
test to see if the type exists or not.  Additionally, repaired an issue
where if the same enum were encountered multiple times in a single DDL
sequence, the "check" query would run repeatedly rather than relying upon a
cached value.

Fixes: #5520
Change-Id: I79f46e29ac0168e873ff178c242f8d78f6679aeb
doc/build/changelog/unreleased_13/5520.rst [new file with mode: 0644]
lib/sqlalchemy/dialects/postgresql/base.py
lib/sqlalchemy/testing/assertsql.py
test/dialect/postgresql/test_types.py