]> 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:38:40 +0000 (10:38 -0400)
commit0737f45d4ff8fdb2e12972cc58c18345e4d6dde2
tree05ce81094cb27d3eeea44af126e34b15ed571228
parentfb991a4474fa0d4df69af10a808fe234016c6a52
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
doc/build/changelog/unreleased_12/4341.rst [new file with mode: 0644]
lib/sqlalchemy/sql/sqltypes.py
test/sql/test_metadata.py