]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Pass DDLCompiler IdentifierPreparer to visit_ENUM
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 17 Feb 2020 20:21:59 +0000 (15:21 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 17 Feb 2020 20:36:16 +0000 (15:36 -0500)
commit3362b0ceb13771b5e035bb4b802b813aa390c144
tree489c3bf9e8abe28e404d662554dff1badd06b92d
parent086c7986557ab90c54f548f56f723e2940f055c1
Pass DDLCompiler IdentifierPreparer to visit_ENUM

Fixed issue where the "schema_translate_map" feature would not work with a
PostgreSQL native enumeration type (i.e. :class:`.Enum`,
:class:`.postgresql.ENUM`) in that while the "CREATE TYPE" statement would
be emitted with the correct schema, the schema would not be rendered in
the CREATE TABLE statement at the point at which the enumeration was
referenced.

Fixes: #5158
Change-Id: I41529785de2e736c70a142c2ae5705060bfed73e
(cherry picked from commit 89b8c343ed6247a562e0bcd53ef3fc180d0d4e46)
doc/build/changelog/unreleased_13/5158.rst [new file with mode: 0644]
lib/sqlalchemy/dialects/postgresql/base.py
test/dialect/postgresql/test_compiler.py
test/dialect/postgresql/test_types.py