]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
pass to_metadata argument to Enum.copy()
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 29 Aug 2024 14:04:47 +0000 (10:04 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 29 Aug 2024 15:49:50 +0000 (11:49 -0400)
commit22cbc7dcb48c946dda66704797665289965eb22e
treef4f3eaa67e5e95710360006a66bae2a9e2ab84dc
parent2e12ce74b0a4b78bb9268da2b84fc5c52d4299b3
pass to_metadata argument to Enum.copy()

Fixed bug where the ``metadata`` element of an ``Enum`` datatype would not
be transferred to the new :class:`.MetaData` object when the type had been
copied via a :meth:`.Table.to_metadata` operation, leading to inconsistent
behaviors within create/drop sequences.

Fixes: #11802
Change-Id: Ibbc93aa31bdfde0d67a9530f41a08e826c17d58e
doc/build/changelog/unreleased_20/11802.rst [new file with mode: 0644]
lib/sqlalchemy/sql/schema.py
lib/sqlalchemy/sql/sqltypes.py
test/sql/test_metadata.py