]> 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:35:44 +0000 (15:35 -0500)
commit89b8c343ed6247a562e0bcd53ef3fc180d0d4e46
treee805922a2a236f3f5a519ce5a9a0193fa5b28cf6
parent3c7765b49c0aba253c11f435b2923bb488d15809
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
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