]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Copy create_constraint flag for Enum
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 25 Sep 2018 14:38:40 +0000 (10:38 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 25 Sep 2018 14:39:10 +0000 (10:39 -0400)
commitfa4222e5d62fe4127a8375b857ba1a39c5fdb813
tree3d62c93452046645c3cb365fdb3bb258f3b91fcc
parentc9aab727c5bb8fffc9b9830a385524f8db3aac0c
Copy create_constraint flag for Enum

Fixed bug where the :paramref:`.Enum.create_constraint` flag on  the
:class:`.Enum` datatype would not be propagated to copies of the type, which
affects use cases such as declarative mixins and abstract bases.

Fixes: #4341
Change-Id: I978be65f33a616fe4d5f5de03fb3eaab6f6a2272
(cherry picked from commit 0737f45d4ff8fdb2e12972cc58c18345e4d6dde2)
doc/build/changelog/unreleased_12/4341.rst [new file with mode: 0644]
lib/sqlalchemy/sql/sqltypes.py
test/sql/test_metadata.py