]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
include create_type in pg.ENUM.adapt; test all attrs
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 12 May 2023 18:34:00 +0000 (14:34 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 12 May 2023 19:09:33 +0000 (15:09 -0400)
commit11a1d5e70450300310ff7fafeeb03fe1baa9380e
tree1dcb0c0e3ee15763d7434b28229201218859be8a
parent169d6e6804c0e6bbb5f8b2fa4217e659b49a0d9f
include create_type in pg.ENUM.adapt; test all attrs

Fixed apparently very old issue where the
:paramref:`_postgresql.ENUM.create_type` parameter, when set to its
non-default of ``False``, would not be propagated when the
:class:`_schema.Column` which it's a part of were copied, as is common when
using ORM Declarative mixins.

Fixes: #9773
Change-Id: I79a7c6f052ec39b42400d92bf591c791feca573b
doc/build/changelog/unreleased_20/9773.rst [new file with mode: 0644]
lib/sqlalchemy/dialects/postgresql/named_types.py
lib/sqlalchemy/sql/type_api.py
test/dialect/postgresql/test_types.py